1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00
trezor-firmware/build-docker.sh

15 lines
420 B
Bash
Raw Normal View History

2017-11-04 00:56:05 +00:00
#!/bin/bash
set -e
IMAGE=trezor-core-build
TAG=${1:-master}
docker build -t $IMAGE .
docker run -t -v $(pwd)/build-docker:/build:z $IMAGE /bin/sh -c "\
git clone https://github.com/trezor/trezor-core && \
cd trezor-core && \
ln -s /build build &&
git checkout $TAG && \
git submodule update --init --recursive && \
make clean vendor vendorheader build_boardloader build_bootloader build_prodtest build_firmware"