1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-03 13:08:17 +00:00
trezor-firmware/firmware-docker-build.sh

19 lines
352 B
Bash
Raw Normal View History

#!/bin/bash
dirname $0
2014-07-07 14:59:37 +00:00
IMAGETAG=trezor-mcu-build
docker rmi $IMAGETAG || :
docker build -t $IMAGETAG .
2014-07-07 14:59:37 +00:00
CONTAINERTAG=trezor-mcu-build
docker rm $CONTAINERTAG || :
docker run --name $CONTAINERTAG $IMAGETAG true
2014-07-07 14:59:37 +00:00
docker cp $CONTAINERTAG:/trezor-mcu/firmware/trezor.bin .
echo "---------------------"
echo "Firmware fingerprint:"
sha256sum trezor.bin