1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00
trezor-firmware/firmware-docker-build.sh
2014-07-07 16:59:37 +02:00

19 lines
352 B
Bash
Executable File

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