From 27f61ae121ffb6fc7c82b9618362426149ecc25b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 28 Jan 2018 15:44:26 +0100 Subject: [PATCH] build: add build-docker.gcc_source.sh script --- build-docker.gcc_source.sh | 15 +++++++++++++++ build-docker.sh | 6 ------ 2 files changed, 15 insertions(+), 6 deletions(-) create mode 100755 build-docker.gcc_source.sh diff --git a/build-docker.gcc_source.sh b/build-docker.gcc_source.sh new file mode 100755 index 00000000..b597fa41 --- /dev/null +++ b/build-docker.gcc_source.sh @@ -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" diff --git a/build-docker.sh b/build-docker.sh index c4e8a829..9799b319 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -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 && \