x86_fsp: qemu: make_hd: allow image from env variable

pull/443/head
Marco Oliverio 2023-10-09 13:00:09 +00:00
parent abee55e7f5
commit ddd7fb1c4b
1 changed files with 6 additions and 5 deletions

View File

@ -19,8 +19,9 @@ n
+16M +16M
w w
EOF EOF
# copy bzImage in the root folder
tools/keytools/sign $SIGN $HASH ${IMAGE} wolfboot_signing_private_key.der 1 cp ${IMAGE} "image.bin"
tools/keytools/sign $SIGN $HASH ${IMAGE} wolfboot_signing_private_key.der 2 tools/keytools/sign $SIGN $HASH image.bin wolfboot_signing_private_key.der 1
dd if=${IMAGE}_v1_signed.bin of=app.bin bs=512 seek=2048 conv=notrunc tools/keytools/sign $SIGN $HASH image.bin wolfboot_signing_private_key.der 2
dd if=${IMAGE}_v2_signed.bin of=app.bin bs=512 seek=34816 conv=notrunc dd if=image_v1_signed.bin of=app.bin bs=512 seek=2048 conv=notrunc
dd if=image_v2_signed.bin of=app.bin bs=512 seek=34816 conv=notrunc