1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

Merge pull request #26 from hno/patches/versioned_output

Put firmware files in output/ and name them with the tag built
This commit is contained in:
Pavol Rusnak 2015-04-28 21:17:20 +02:00
commit ae5bd43702

View File

@ -3,7 +3,7 @@ IMAGETAG=trezor-mcu-build
FIRMWARETAG=${1:-master} FIRMWARETAG=${1:-master}
docker build -t $IMAGETAG . docker build -t $IMAGETAG .
docker run -t -v $(pwd):/output $IMAGETAG /bin/sh -c "\ docker run -t -v $(pwd)/output:/output $IMAGETAG /bin/sh -c "\
git clone https://github.com/trezor/trezor-mcu && \ git clone https://github.com/trezor/trezor-mcu && \
cd trezor-mcu && \ cd trezor-mcu && \
git checkout $FIRMWARETAG && \ git checkout $FIRMWARETAG && \
@ -11,10 +11,9 @@ docker run -t -v $(pwd):/output $IMAGETAG /bin/sh -c "\
make && \ make && \
cd firmware && \ cd firmware && \
make && \ make && \
cp trezor.bin /output \ cp trezor.bin /output/trezor-$FIRMWARETAG.bin"
"
echo "---------------------" echo "---------------------"
echo "Firmware fingerprint:" echo "Firmware fingerprint:"
sha256sum trezor.bin sha256sum output/trezor-$FIRMWARETAG.bin