hss-payload-generator: make sure src.bin/u-boot.bin are the same, when generating payload.bin

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
default-cape-symlinks
Robert Nelson 1 year ago
parent f8f397425a
commit bf6ed25a6a

@ -1,7 +1,36 @@
#!/bin/bash
cd ./deploy/
./hss-payload-generator -c config.yaml -v ./input/payload.bin
sha256sum ./input/payload.bin
if [ -f ./src.bin ] ; then
if [ -f ./input/payload.bin ] ; then
rm -rf ./input/payload.bin || true
fi
tree -s ./input/
./hss-payload-generator -vv -c config.yaml ./input/payload.bin
unset test_var
test_var=$(strings ./u-boot.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[u-boot.bin: ${test_var}]"
fi
unset test_var
test_var=$(strings ./src.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[src.bin: ${test_var}]"
fi
unset test_var
test_var=$(strings ./input/payload.bin | grep 'U-Boot 20' | head -n1 || true)
if [ ! "x${test_var}" = "x" ] ; then
echo "[payload.bin:${test_var}]"
fi
tree -s ./input/
fi
#

Loading…
Cancel
Save