summaryrefslogtreecommitdiff
path: root/scripts/image_signing/sign_firmware.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/image_signing/sign_firmware.sh')
-rwxr-xr-xscripts/image_signing/sign_firmware.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/image_signing/sign_firmware.sh b/scripts/image_signing/sign_firmware.sh
index 45d739f9..94614ba6 100755
--- a/scripts/image_signing/sign_firmware.sh
+++ b/scripts/image_signing/sign_firmware.sh
@@ -71,7 +71,6 @@ sign_loems() {
local line loem_section=false loem_index loemid
local rootkey
- rm -f "${out_firmware}"
while read line; do
# Find the [loem] section.
if ! ${loem_section}; then
@@ -95,7 +94,7 @@ sign_loems() {
rootkey="${key_dir}/root_key.loem${loem_index}.vbpubk"
cp "${rootkey}" "${loem_output_dir}/rootkey.${loemid}"
- if [[ ! -e ${out_firmware} ]]; then
+ if [[ ${loem_index} == "1" ]]; then
gbb_update "${temp_fw}" "${key_dir}" "${out_firmware}" "${rootkey}"
fi
echo