mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-15 20:19:23 +00:00
20 lines
490 B
Bash
Executable File
20 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
IMAGETAG=trezor-mcu-build
|
|
FIRMWARETAG=${1:-master}
|
|
|
|
docker build -t $IMAGETAG .
|
|
docker run -t -v $(pwd)/output:/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/trezor-$FIRMWARETAG.bin"
|
|
|
|
echo "---------------------"
|
|
echo "Firmware fingerprint:"
|
|
|
|
sha256sum output/trezor-$FIRMWARETAG.bin
|