hps-firmware-images: Update signing script to include manifest
Update the firmware signing script to also pull the firmware manifest
from the cloud storage bucket so that the hps-firmware-images ebuild can
install it.
We also add a manually created initial manifest file for the latest
firmware.
BUG=b:231393337
TEST=manual
Change-Id: I2299a0949606b007ef1b142a9f67d10196f934d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/hps-firmware-images/+/3641217
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Tested-by: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Dan Callaghan <dcallagh@chromium.org>
Reviewed-by: David Lattimore <dml@chromium.org>
diff --git a/firmware-signed/manifest.txt b/firmware-signed/manifest.txt
new file mode 100644
index 0000000..60af110
--- /dev/null
+++ b/firmware-signed/manifest.txt
@@ -0,0 +1,3 @@
+0.1.0-r351-8fe6ba239d047fd63e46805bf2f301156c461625
+presence_0_20220424_170824_tiled.tflite
+second_0_20220424_172857_tiled.tflite
diff --git a/script/get_signed_binary.sh b/script/get_signed_binary.sh
index 4afc29f..2decdfd 100755
--- a/script/get_signed_binary.sh
+++ b/script/get_signed_binary.sh
@@ -21,19 +21,22 @@
tar --strip-components=1 -xvf \
"ChromeOS-hps_firmware-$MILESTONE-$VERSION-brya.tar.bz2" \
- hps/fpga_bitstream.bin hps/fpga_application.bin
+ hps/fpga_bitstream.bin hps/fpga_application.bin hps/manifest.txt
-cp mcu_stage1.bin fpga_bitstream.bin fpga_application.bin ..
+cp mcu_stage1.bin fpga_bitstream.bin fpga_application.bin manifest.txt ..
cd ..
-git add mcu_stage1.bin fpga_bitstream.bin fpga_application.bin
+git add mcu_stage1.bin fpga_bitstream.bin fpga_application.bin manifest.txt
git commit -m "Update signed binaries from $MILESTONE-$VERSION
BUG=b:204378599
TEST=None
"
-echo "Reminder to test these files:"
-echo "scp mcu_stage1.bin fpga_bitstream.bin fpga_application.bin dut:/usr/lib/firmware/hps/"
-echo "ssh dut stop hpsd \; start hpsd"
-echo "ssh dut tail -f /var/log/messages \| grep hps"
+cat <<EOF
+Reminder to test these files:
+scp mcu_stage1.bin fpga_bitstream.bin fpga_application.bin manifest.txt \
+dut:/usr/lib/firmware/hps/
+ssh dut stop hpsd ; start hpsd
+ssh dut tail -f /var/log/messages | grep hps
+EOF