1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-10 04:16:16 +00:00

legacy: more build script fixing

This commit is contained in:
Pavol Rusnak 2019-04-25 14:11:37 +02:00
parent 9abe9d6698
commit 5507688ce6
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 4 additions and 11 deletions

View File

@ -5,20 +5,11 @@ cd "$(dirname $0)/.."
BOOTLOADER_COMMIT=${1:-HEAD}
FIRMWARE_COMMIT=${2:-HEAD}
if [ "$BOOTLOADER_COMMIT" = "EMU" ]; then
export EMULATOR=1
fi
if [ "$EMULATOR" = 1 ]; then
IMAGE=trezor-mcu-emulator
else
IMAGE=trezor-mcu-build
fi
IMAGE=trezor-mcu-build
USER=$(ls -lnd . | awk '{ print $3 }')
GROUP=$(ls -lnd . | awk '{ print $4 }')
docker build -t "$IMAGE" --build-arg EMULATOR=$EMULATOR legacy
docker build -t "$IMAGE" .
docker run -it -v $(pwd):/src:z --user="$USER:$GROUP" "$IMAGE" \
/src/legacy/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"

View File

@ -11,6 +11,8 @@ set -eu
cd "$(dirname "$0")/../.."
EMULATOR=${EMULATOR:-0}
readonly MCU_ROOT=legacy
readonly ARTIFACT_EXTENSIONS=(bin elf)