1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

small changes to scripts for deterministic builds

This commit is contained in:
Pavol Rusnak 2014-06-19 02:28:22 +02:00
parent e3d7687b7d
commit b6b49a20f5
4 changed files with 10 additions and 9 deletions

4
.gitignore vendored
View File

@ -1,10 +1,10 @@
*.o
*.a
*.d
*.o
*.bin
*.elf
*.hex
*.list
*.srec
usb.pb*
*.log
bootloader

View File

@ -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

View File

@ -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

View File

@ -7,5 +7,6 @@ if [ "x$MAGIC" != "xTRZR" ]; then
exit 1
fi
echo "---------------------"
echo "Firmware fingerprint:"
tail -c +257 $1 | sha256sum