mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
This adds a field in the GBB header to store the sha256 digest of the HWID string, and updates gbb_utility so that it stores the digest when it modifies the HWID. Because this is a new field, the GBB_MINOR_VER is incremented. BUG=chromium:415227 BRANCH=ToT TEST=make runtests, VBOOT2=1 make runtests Since the GBB is in the RO firmware, there should be no side effects for existing devices (but even without that, they should handle a minor version change without complaint). Change-Id: Icdb2a0b564677b0b65e58df897d2ec5af3964998 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/221360
20 lines
441 B
C
20 lines
441 B
C
/*
|
|
* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#include <stdio.h>
|
|
#include "gbb_header.h"
|
|
#include "test_common.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
TEST_EQ(sizeof(GoogleBinaryBlockHeader),
|
|
GBB_HEADER_SIZE,
|
|
"sizeof(GoogleBinaryBlockHeader)");
|
|
|
|
TEST_EQ(0, 0, "Not Really A");
|
|
|
|
return !gTestSuccess;
|
|
}
|