Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1913)

Unified Diff: scripts/image_signing/resign_firmwarefd.sh

Issue 3083025: Make signing script re-sign Firmware AU payload, and update rootfs hash. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: review fixes Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/image_signing/common.sh ('k') | scripts/image_signing/resign_image.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/image_signing/resign_firmwarefd.sh
diff --git a/scripts/image_signing/resign_firmwarefd.sh b/scripts/image_signing/resign_firmwarefd.sh
index d2b9399bfd57eaeb35eba1f6c72ca006badef544..d3f306ba902051c2d2558fa61149d8929fa50d20 100755
--- a/scripts/image_signing/resign_firmwarefd.sh
+++ b/scripts/image_signing/resign_firmwarefd.sh
@@ -47,6 +47,9 @@
# which can then replace old vblock for Firmware A ("Firmware A Key" region at
# offset 0x00008000 and size 0x00002000).
+# Load common constants and variables.
+. "$(dirname "$0")/common.sh"
+
# Abort on error
set -e
@@ -95,9 +98,8 @@ do
fw${i}_size="$size"
done
-temp_fwimage=$(mktemp)
-temp_out_vb=$(mktemp)
-trap "rm -f ${temp_fwimage} ${temp_out_vb}" EXIT
+temp_fwimage=$(make_temp_file)
+temp_out_vb=$(make_temp_file)
# Extract out Firmware A data and generate signature using the right keys
dd if="${src_fd}" of="${temp_fwimage}" skip="${fwA_offset}" bs=1 \
« no previous file with comments | « scripts/image_signing/common.sh ('k') | scripts/image_signing/resign_image.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698