mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
0ac032917b
support both NIST256P1 and SECP256K1 ECDSA curves.
20 lines
482 B
Bash
Executable File
20 lines
482 B
Bash
Executable File
#!/bin/bash
|
|
IMAGETAG=trezor-mcu-build
|
|
FIRMWARETAG="ssh-agent"
|
|
|
|
docker build -t $IMAGETAG .
|
|
docker run -t -v $(pwd)/output:/output $IMAGETAG /bin/sh -c "\
|
|
git clone https://github.com/romanz/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
|