sign_cr50_firmware.sh: allow signing MP images.

Allow MP images to be signed.  Also, the manifest file name changed.

BRANCH=none
BUG=b:74100307
TEST=manual

Change-Id: Ia6b4724ceea2b7a18a2caecea7142d1b6ebfaa13
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1791816
Reviewed-by: LaMont Jones <lamontjones@chromium.org>
Commit-Queue: LaMont Jones <lamontjones@chromium.org>
Tested-by: LaMont Jones <lamontjones@chromium.org>
Auto-Submit: LaMont Jones <lamontjones@chromium.org>
This commit is contained in:
LaMont Jones 2019-09-08 12:13:52 -06:00
parent 4856877a76
commit 9d0e53cae9
1 changed files with 9 additions and 8 deletions

View File

@ -53,13 +53,9 @@ verify_cr50_manifest() {
fi
if (( major & 1 )); then
if (( bid_flags & MP_BID_FLAG )); then
return 0
fi
else
if (( bid_flags & PRE_PVT_BID_FLAG )); then
return 0
fi
return 0
elif (( bid_flags & PRE_PVT_BID_FLAG )); then
return 0
fi
die "Inconsistent manifest ${manifest_source}: major = '${major}'," \
"board_id_flags = '${bid_flags}'"
@ -338,9 +334,14 @@ sign_cr50_firmware_dir() {
output="${output}/cr50.bin.prod"
fi
local manifest_file="${input}/prod.json"
if [[ ! -e "$manifest_file" ]]; then
manifest_file="${input}/ec_RW-manifest-prod.json"
fi
sign_cr50_firmware \
"${key_file}" \
"${input}/ec_RW-manifest-prod.json" \
"${manifest_file}" \
"${input}/fuses.xml" \
"${input}" \
"${input}/prod.ro.A" \