mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
22 lines
616 B
Bash
Executable File
22 lines
616 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
IMAGE=trezor-core-build
|
|
TAG=${1:-master}
|
|
|
|
docker build -t $IMAGE .
|
|
|
|
# use the following line instead of the above line
|
|
# if you want to compile ARM toolchain from source
|
|
# warning: very long compilation time!
|
|
|
|
# docker build -t $IMAGE -f Dockerfile.gcc_source .
|
|
|
|
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"
|