diff options
Diffstat (limited to 'scripts/image_signing/sign_gsc_firmware.sh')
-rwxr-xr-x | scripts/image_signing/sign_gsc_firmware.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/image_signing/sign_gsc_firmware.sh b/scripts/image_signing/sign_gsc_firmware.sh index 30e27950..bc5b89ac 100755 --- a/scripts/image_signing/sign_gsc_firmware.sh +++ b/scripts/image_signing/sign_gsc_firmware.sh @@ -492,6 +492,7 @@ sign_gsc_firmware() { local output_file="$9" local generation="${10}" local temp_dir + local chip_name temp_dir="$(make_temp_dir)" @@ -500,11 +501,13 @@ sign_gsc_firmware() { # H1 flash size, image size must match. IMAGE_SIZE="$(( 512 * 1024 ))" IMAGE_BASE="0x40000" + chip_name="cr50" ;; (d) # D2 flash size, image size must match. IMAGE_SIZE="$(( 1024 * 1024 ))" IMAGE_BASE="0x80000" + chip_name="ti50" ;; esac @@ -544,6 +547,9 @@ sign_gsc_firmware() { paste_bin "${output_file}" "${bin}" "${IMAGE_BASE}" "${hex_base}" done + # Tell the signer how to rename the @CHIP@ portion of the output. + echo "${chip_name}" > "${output_file}.rename" + info "Image successfully signed to ${output_file}" } |