trezor-mcu/firmware-docker-build.sh

21 lines
430 B
Bash
Raw Normal View History

#!/bin/bash
2014-07-07 07:59:37 -07:00
IMAGETAG=trezor-mcu-build
2014-12-27 07:33:44 -08:00
FIRMWARETAG=v1.3.0
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 \
"
echo "---------------------"
echo "Firmware fingerprint:"
sha256sum trezor.bin