mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
7c58d7d24e
The core/build-docker.sh si broken, but so it was already in master and is tracked to be fixed in #108.
16 lines
370 B
Bash
Executable File
16 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname $0)/.."
|
|
|
|
BOOTLOADER_COMMIT=${1:-HEAD}
|
|
FIRMWARE_COMMIT=${2:-HEAD}
|
|
IMAGE=trezor-mcu-build
|
|
|
|
USER=$(ls -lnd . | awk '{ print $3 }')
|
|
GROUP=$(ls -lnd . | awk '{ print $4 }')
|
|
|
|
docker build -t "$IMAGE" ci/
|
|
docker run -it -v $(pwd):/src:z --user="$USER:$GROUP" "$IMAGE" \
|
|
/src/legacy/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"
|