mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-16 04:29:08 +00:00
13 lines
418 B
Bash
Executable File
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
|