mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-25 07:48:10 +00:00
build: add BITCOIN_ONLY variable to docker build scripts
This commit is contained in:
parent
9d5bac50fd
commit
bfe01707b1
@ -14,6 +14,7 @@ IMAGE=trezor-core-build.$TOOLCHAIN_FLAVOR
|
|||||||
TAG=${1:-master}
|
TAG=${1:-master}
|
||||||
REPOSITORY=${2:-trezor}
|
REPOSITORY=${2:-trezor}
|
||||||
PRODUCTION=${PRODUCTION:-0}
|
PRODUCTION=${PRODUCTION:-0}
|
||||||
|
BITCOIN_ONLY=${BITCOIN_ONLY:-0}
|
||||||
|
|
||||||
if [ "$REPOSITORY" = "local" ]; then
|
if [ "$REPOSITORY" = "local" ]; then
|
||||||
REPOSITORY=file:///local/
|
REPOSITORY=file:///local/
|
||||||
@ -27,7 +28,7 @@ USER=$(ls -lnd . | awk '{ print $3 }')
|
|||||||
GROUP=$(ls -lnd . | awk '{ print $4 }')
|
GROUP=$(ls -lnd . | awk '{ print $4 }')
|
||||||
|
|
||||||
mkdir -p $(pwd)/build/core
|
mkdir -p $(pwd)/build/core
|
||||||
docker run -t -v $(pwd):/local -v $(pwd)/build/core:/build:z --user="$USER:$GROUP" $IMAGE /bin/sh -c "\
|
docker run -t -v $(pwd):/local -v $(pwd)/build/core:/build:z --env BITCOIN_ONLY="$BITCOIN_ONLY" --user="$USER:$GROUP" $IMAGE /bin/sh -c "\
|
||||||
cd /tmp && \
|
cd /tmp && \
|
||||||
git clone $REPOSITORY trezor-firmware && \
|
git clone $REPOSITORY trezor-firmware && \
|
||||||
cd trezor-firmware/core && \
|
cd trezor-firmware/core && \
|
||||||
|
@ -6,10 +6,11 @@ cd "$(dirname $0)/.."
|
|||||||
BOOTLOADER_COMMIT=${1:-HEAD}
|
BOOTLOADER_COMMIT=${1:-HEAD}
|
||||||
FIRMWARE_COMMIT=${2:-HEAD}
|
FIRMWARE_COMMIT=${2:-HEAD}
|
||||||
IMAGE=trezor-mcu-build
|
IMAGE=trezor-mcu-build
|
||||||
|
BITCOIN_ONLY=${BITCOIN_ONLY:-0}
|
||||||
|
|
||||||
USER=$(ls -lnd . | awk '{ print $3 }')
|
USER=$(ls -lnd . | awk '{ print $3 }')
|
||||||
GROUP=$(ls -lnd . | awk '{ print $4 }')
|
GROUP=$(ls -lnd . | awk '{ print $4 }')
|
||||||
|
|
||||||
docker build -t "$IMAGE" ci/
|
docker build -t "$IMAGE" ci/
|
||||||
docker run -it -v $(pwd):/src:z --user="$USER:$GROUP" "$IMAGE" \
|
docker run -it -v $(pwd):/src:z --env BITCOIN_ONLY="$BITCOIN_ONLY" --user="$USER:$GROUP" "$IMAGE" \
|
||||||
/src/legacy/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"
|
/src/legacy/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user