diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-08-07 11:19:49 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-07 22:18:50 -0700 |
commit | 640e0d15763fb356cf42281b0e285f06e2c4a03f (patch) | |
tree | 5ba0c00c1d6b15c3e6adeef252a366314a1995c8 /util/signer | |
parent | fc3beea4e9ca1722b793ca509630968f3231b5ec (diff) | |
download | chrome-ec-640e0d15763fb356cf42281b0e285f06e2c4a03f.tar.gz |
g: signer: use strings instead of numbers for Board ID fields
Recent signer improvements allow to include hex values into the
manifest, this also makes it easier to process values with bid D31
set, let's use strings instead of ints.
BRANCH=none
BUG=none
TEST=verified signing of a prod release
Change-Id: Ia05198991bfdd8dfd831545a9edf70f1e06f24f4
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/604217
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'util/signer')
-rwxr-xr-x | util/signer/bs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/signer/bs b/util/signer/bs index efca4d5170..1d7292a9a9 100755 --- a/util/signer/bs +++ b/util/signer/bs @@ -99,9 +99,9 @@ tweak_manifest () { rlz="0x$(echo -n ${bid_params[0]} | hexdump -ve '/1 "%02x"')" # Prepare text of all three board ID related nodes - sub="$(printf "\\\n\"board_id\": %d,\\\n" "${rlz}")" - sub+="$(printf "\"board_id_flags\": %d,\\\n" "0x${bid_params[1]}")" - sub+="$(printf "\"board_id_mask\": %d,\\\n" "0x${bid_params[2]}")" + sub="$(printf "\\\n\"board_id\": %s,\\\n" "${rlz}")" + sub+="$(printf "\"board_id_flags\": %s,\\\n" "0x${bid_params[1]}")" + sub+="$(printf "\"board_id_mask\": %s,\\\n" "0x${bid_params[2]}")" sed -i "s/\"fuses\": {/${sub}\"fuses\": {/" "${tmpf}" } |