1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-10 18:09:00 +00:00
trezor-firmware/firmware-docker-build.sh
2015-02-16 15:23:30 +01:00

21 lines
430 B
Bash
Executable File

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