2014-06-18 17:08:31 -07:00
|
|
|
#!/bin/bash
|
2014-07-07 07:59:37 -07:00
|
|
|
IMAGETAG=trezor-mcu-build
|
2015-03-04 09:10:09 -08:00
|
|
|
FIRMWARETAG=${1:-master}
|
2014-12-25 05:43:32 -08:00
|
|
|
|
2014-07-07 07:59:37 -07:00
|
|
|
docker build -t $IMAGETAG .
|
2014-12-27 07:33:44 -08:00
|
|
|
docker run -t -v $(pwd):/output $IMAGETAG /bin/sh -c "\
|
|
|
|
git clone https://github.com/trezor/trezor-mcu && \
|
|
|
|
cd trezor-mcu && \
|
|
|
|
git checkout $FIRMWARETAG && \
|
|
|
|
git submodule update --init && \
|
|
|
|
make && \
|
|
|
|
cd firmware && \
|
|
|
|
make && \
|
|
|
|
cp trezor.bin /output \
|
|
|
|
"
|
2014-06-18 17:08:31 -07:00
|
|
|
|
2014-06-18 17:28:22 -07:00
|
|
|
echo "---------------------"
|
|
|
|
echo "Firmware fingerprint:"
|
2014-06-18 17:08:31 -07:00
|
|
|
|
|
|
|
sha256sum trezor.bin
|