mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-20 07:48:46 +00:00
build: add more verbose output to build script
This commit is contained in:
parent
db19d24b87
commit
ddc51a39e2
12
build.sh
12
build.sh
@ -20,6 +20,13 @@ FIRMWARE_BINFILE=build/trezor-$FIRMWARE_TAG.bin
|
|||||||
FIRMWARE_ELFFILE=build/trezor-$FIRMWARE_TAG.elf
|
FIRMWARE_ELFFILE=build/trezor-$FIRMWARE_TAG.elf
|
||||||
|
|
||||||
docker build -t $IMAGE .
|
docker build -t $IMAGE .
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "STARTING BUILD:"
|
||||||
|
echo
|
||||||
|
echo "Building bootloader '$BOOTLOADER_TAG' + firmware '$FIRMWARE_TAG' from repo: $REPOSITORY"
|
||||||
|
echo
|
||||||
|
|
||||||
docker run -i -t -v $(pwd):/local -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
docker run -i -t -v $(pwd):/local -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
||||||
cd /tmp && \
|
cd /tmp && \
|
||||||
git clone $REPOSITORY trezor-mcu-bl && \
|
git clone $REPOSITORY trezor-mcu-bl && \
|
||||||
@ -46,6 +53,10 @@ docker run -i -t -v $(pwd):/local -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
|||||||
cp firmware/trezor.elf /$FIRMWARE_ELFFILE
|
cp firmware/trezor.elf /$FIRMWARE_ELFFILE
|
||||||
"
|
"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "FINISHED BUILD"
|
||||||
|
echo
|
||||||
|
|
||||||
/usr/bin/env python -c "
|
/usr/bin/env python -c "
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import hashlib
|
import hashlib
|
||||||
@ -59,7 +70,6 @@ for arg in sys.argv[1:]:
|
|||||||
fprint = hashlib.sha256(hashlib.sha256(data[fprint_start:]).digest()).hexdigest()
|
fprint = hashlib.sha256(hashlib.sha256(data[fprint_start:]).digest()).hexdigest()
|
||||||
else:
|
else:
|
||||||
fprint = hashlib.sha256(data[fprint_start:]).hexdigest()
|
fprint = hashlib.sha256(data[fprint_start:]).hexdigest()
|
||||||
print('\n\n')
|
|
||||||
print('Filename :', fn)
|
print('Filename :', fn)
|
||||||
print('Fingerprint :', fprint)
|
print('Fingerprint :', fprint)
|
||||||
print('Size : %d bytes (out of %d maximum)' % (len(data), max_size))
|
print('Size : %d bytes (out of %d maximum)' % (len(data), max_size))
|
||||||
|
Loading…
Reference in New Issue
Block a user