mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-05 13:01:12 +00:00
feat(legacy): use new artifacts naming for legacy builds
[no changelog]
This commit is contained in:
parent
0e9aa7c5dc
commit
12eb192b3f
@ -224,6 +224,7 @@ for BITCOIN_ONLY in ${VARIANTS_legacy[@]}; do
|
|||||||
cp bootloader/bootloader.bin build/bootloader/bootloader.bin
|
cp bootloader/bootloader.bin build/bootloader/bootloader.bin
|
||||||
cp intermediate_fw/trezor.bin build/intermediate_fw/inter.bin
|
cp intermediate_fw/trezor.bin build/intermediate_fw/inter.bin
|
||||||
cp firmware/trezor.bin build/firmware/firmware.bin
|
cp firmware/trezor.bin build/firmware/firmware.bin
|
||||||
|
cp firmware/firmware*.bin build/firmware/ || true # ignore missing file as it will not be present in old tags
|
||||||
cp firmware/trezor.elf build/firmware/firmware.elf
|
cp firmware/trezor.elf build/firmware/firmware.elf
|
||||||
poetry run ../python/tools/firmware-fingerprint.py \
|
poetry run ../python/tools/firmware-fingerprint.py \
|
||||||
-o build/firmware/firmware.bin.fingerprint \
|
-o build/firmware/firmware.bin.fingerprint \
|
||||||
|
@ -29,4 +29,23 @@ if [ "$EMULATOR" != 1 ]; then
|
|||||||
make -C firmware sign
|
make -C firmware sign
|
||||||
make -C intermediate_fw
|
make -C intermediate_fw
|
||||||
make -C intermediate_fw sign
|
make -C intermediate_fw sign
|
||||||
|
|
||||||
|
# Giving the firmware bin a descriptive name
|
||||||
|
if [ "$BITCOIN_ONLY" = 1 ]; then
|
||||||
|
BTCONLY="-bitcoinonly"
|
||||||
|
else
|
||||||
|
BTCONLY=""
|
||||||
|
fi
|
||||||
|
VERSION_MAJOR=$(grep -P '\bVERSION_MAJOR\b' firmware/version.h | cut -d' ' -f3)
|
||||||
|
VERSION_MINOR=$(grep -P '\bVERSION_MINOR\b' firmware/version.h | cut -d' ' -f3)
|
||||||
|
VERSION_PATCH=$(grep -P '\bVERSION_PATCH\b' firmware/version.h | cut -d' ' -f3)
|
||||||
|
VERSION="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}"
|
||||||
|
GITHASH=$(git rev-parse --short HEAD)
|
||||||
|
if git status --porcelain | grep -q '.'; then
|
||||||
|
echo "There are changes in the repository."
|
||||||
|
DIRTY="-dirty"
|
||||||
|
else
|
||||||
|
DIRTY=""
|
||||||
|
fi
|
||||||
|
cp firmware/trezor.bin firmware/firmware-T1B1${BTCONLY}-${VERSION}-${GITHASH}${DIRTY}.bin
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user