1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-25 17:09:44 +00:00

build: add build-docker.gcc_source.sh script

This commit is contained in:
Pavol Rusnak 2018-01-28 15:44:26 +01:00
parent 0f29451416
commit 27f61ae121
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 15 additions and 6 deletions

15
build-docker.gcc_source.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
IMAGE=trezor-core-build.gcc_source
TAG=${1:-master}
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"

View File

@ -6,12 +6,6 @@ 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 && \