1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00
trezor-firmware/firmware-docker-build.sh
2014-12-27 16:34:02 +01:00

21 lines
430 B
Bash
Executable File

#!/bin/bash
IMAGETAG=trezor-mcu-build
FIRMWARETAG=v1.3.0
docker build -t $IMAGETAG .
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