1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
trezor-firmware/core/embed/vendorheader/generate.sh

13 lines
418 B
Bash
Raw Normal View History

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