github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/integration/ft_usbarmory_test.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 INTEGRATION_DIR="$( cd "$( dirname "$0" )" && pwd )" 4 5 banner() { 6 echo -e "\x1b[1m---[\x1b[7m$1\x1b[m]----------------------------------------------\x1b[0m" 7 } 8 9 cd ${INTEGRATION_DIR}/.. 10 11 ( 12 banner "Build armory bootloader" 13 cd devices/usbarmory/bootloader 14 unset GOFLAGS 15 make CROSS_COMPILE=arm-none-eabi- TARGET=usbarmory imx BOOT=uSD START=1024512 16 ) 17 18 ( 19 banner "Build armory unikernel ext4 image" 20 ./cmd/usbarmory/image_builder/build.sh -u ./testdata/firmware/usbarmory/example/tamago-example -o /tmp/armory.ext4 -f 21 )