1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 10:39:00 +00:00
trezor-firmware/core/embed/vendorheader/generate.sh
2020-01-20 17:32:59 +01:00

13 lines
418 B
Bash
Executable File

BUILDVH=../../tools/build_vendorheader
BINCTL=../../tools/headertool.py
# construct all vendor headers
for fn in *.json; do
name=$(echo $fn | sed 's/vendor_\(.*\)\.json/\1/')
$BUILDVH vendor_${name}.json vendor_${name}.toif vendorheader_${name}_unsigned.bin
done
# sign dev vendor header
cp -a vendorheader_unsafe_unsigned.bin vendorheader_unsafe_signed_dev.bin
$BINCTL -D vendorheader_unsafe_signed_dev.bin