summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-08-07 11:19:49 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-08-18 23:35:31 +0000
commit570475b1f245a8514a1727fe31eb73f60d0f3b3c (patch)
treec30b307c4257b114eb15335968367399195830b5 /util
parent0539815451361ce47f0188dfba81e283dcccd6c5 (diff)
downloadchrome-ec-570475b1f245a8514a1727fe31eb73f60d0f3b3c.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> (cherry picked from commit 640e0d15763fb356cf42281b0e285f06e2c4a03f) Reviewed-on: https://chromium-review.googlesource.com/621605
Diffstat (limited to 'util')
-rwxr-xr-xutil/signer/bs6
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}"
}