mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-28 09:08:07 +00:00
17 lines
497 B
Bash
Executable File
17 lines
497 B
Bash
Executable File
BUILDVH=../../tools/build_vendorheader
|
|
BINCTL=../../tools/headertool.py
|
|
|
|
cd $(dirname $0)
|
|
|
|
# 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 and QA vendor header
|
|
for name in unsafe qa_DO_NOT_SIGN; do
|
|
cp -a vendorheader_${name}_unsigned.bin vendorheader_${name}_signed_dev.bin
|
|
$BINCTL -D vendorheader_${name}_signed_dev.bin
|
|
done
|