From 69898e6c513fd5b9e74de12714d2edbd17a4a56a Mon Sep 17 00:00:00 2001 From: David Riley Date: Fri, 4 Sep 2015 16:05:06 -0700 Subject: signer: Add signing support for nvidia lp0 firmware from signer Signer was calling sign_official_build.sh in a manner that wasn't being accepted correctly. Also add test keys from firmware branch. BUG=chrome-os-partner:44227 TEST=sign_official_build.sh nv_lp0_firmware tegra_lp0_resume.fw tests/devkeys tegra_lp0_resume.fw.signed versions.default BRANCH=signer Change-Id: Icd298ac75e3da746220826dc2fb9cc2466e41f1d Signed-off-by: David Riley Reviewed-on: https://chromium-review.googlesource.com/297802 Reviewed-by: Furquan Shaikh --- scripts/image_signing/sign_official_build.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/image_signing/sign_official_build.sh b/scripts/image_signing/sign_official_build.sh index 36d2d859..668989ea 100755 --- a/scripts/image_signing/sign_official_build.sh +++ b/scripts/image_signing/sign_official_build.sh @@ -730,11 +730,6 @@ verify) verify_image exit 0 ;; -nv_lp0_firmware) - check_argc $# 3 - sign_nv_lp0_firmware "${INPUT_IMAGE}" "${KEY_DIR}" - exit 0 - ;; *) # All other signing commands take 4 to 5 args. if [ -z "${OUTPUT_IMAGE}" ]; then @@ -784,6 +779,13 @@ elif [[ "${TYPE}" == "firmware" ]]; then fi cp ${INPUT_IMAGE} ${OUTPUT_IMAGE} sign_firmware ${OUTPUT_IMAGE} ${KEY_DIR} ${FIRMWARE_VERSION} +elif [[ "${TYPE}" == "nv_lp0_firmware" ]]; then + if [[ -e "${KEY_DIR}/loem.ini" ]]; then + echo "LOEM signing not implemented yet for nv_lp0_firmware images" + exit 1 + fi + cp "${INPUT_IMAGE}" "${OUTPUT_IMAGE}" + sign_nv_lp0_firmware "${OUTPUT_IMAGE}" "${KEY_DIR}" elif [[ "${TYPE}" == "kernel" ]]; then if [[ -e "${KEY_DIR}/loem.ini" ]]; then echo "LOEM signing not implemented yet for kernel images" -- cgit v1.2.1