mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
small changes to scripts for deterministic builds
This commit is contained in:
parent
e3d7687b7d
commit
b6b49a20f5
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,10 +1,10 @@
|
||||
*.o
|
||||
*.a
|
||||
*.d
|
||||
*.o
|
||||
*.bin
|
||||
*.elf
|
||||
*.hex
|
||||
*.list
|
||||
*.srec
|
||||
usb.pb*
|
||||
*.log
|
||||
bootloader
|
||||
|
@ -118,9 +118,10 @@ $(NAME).elf: $(OBJS) $(LDSCRIPT) $(TOOLCHAIN_DIR)/lib/libopencm3_stm32f2.a $(TOP
|
||||
clean:
|
||||
rm -f $(OBJS)
|
||||
rm -f *.a
|
||||
rm -f *.bin
|
||||
rm -f *.d
|
||||
rm -f *.elf
|
||||
rm -f *.bin
|
||||
rm -f *.hex
|
||||
rm -f *.srec
|
||||
rm -f *.list
|
||||
rm -r *.log
|
||||
rm -f *.srec
|
||||
|
@ -3,10 +3,10 @@
|
||||
dirname $0
|
||||
|
||||
# Build trezor firmware
|
||||
docker build . | tee docker.log
|
||||
docker build . | tee firmware-docker-build.log
|
||||
|
||||
# Parse image name
|
||||
IMAGE=`grep "Successfully built" docker.log | tail -n1 | cut -d' ' -f3`
|
||||
IMAGE=`grep "Successfully built" firmware-docker-build.log | tail -n1 | cut -d' ' -f3`
|
||||
echo "IMAGE NAME: $IMAGE"
|
||||
|
||||
docker run -t $IMAGE true
|
||||
@ -17,8 +17,7 @@ echo "CONTAINER NAME: $CONTAINER"
|
||||
|
||||
docker cp $CONTAINER:/trezor-mcu/firmware/trezor.bin .
|
||||
|
||||
echo "-------------------------"
|
||||
echo ""
|
||||
echo "SHA256 hash:"
|
||||
echo "---------------------"
|
||||
echo "Firmware fingerprint:"
|
||||
|
||||
sha256sum trezor.bin
|
@ -7,5 +7,6 @@ if [ "x$MAGIC" != "xTRZR" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "---------------------"
|
||||
echo "Firmware fingerprint:"
|
||||
tail -c +257 $1 | sha256sum
|
||||
|
Loading…
Reference in New Issue
Block a user