1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-11 02:19:21 +00:00
trezor-firmware/firmware-docker-build.sh

12 lines
264 B
Bash
Raw Normal View History

#!/bin/bash
2014-07-07 14:59:37 +00:00
IMAGETAG=trezor-mcu-build
2014-12-25 13:43:32 +00:00
2014-07-07 14:59:37 +00:00
docker rmi $IMAGETAG || :
docker build -t $IMAGETAG .
2014-12-25 13:43:32 +00:00
docker run -t -v $(pwd):/output $IMAGETAG /bin/cp /trezor-mcu/firmware/trezor.bin /output
echo "---------------------"
echo "Firmware fingerprint:"
sha256sum trezor.bin