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