1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-27 00:28:10 +00:00
trezor-firmware/legacy/build.sh

16 lines
370 B
Bash
Raw Normal View History

#!/bin/bash
set -e
cd "$(dirname $0)/.."
2018-06-25 16:09:52 +00:00
BOOTLOADER_COMMIT=${1:-HEAD}
FIRMWARE_COMMIT=${2:-HEAD}
2019-04-25 12:11:37 +00:00
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"