1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00
trezor-firmware/build.sh

12 lines
265 B
Bash
Raw Normal View History

#!/bin/bash
set -e
IMAGE=trezor-mcu-build
2018-06-25 16:09:52 +00:00
BOOTLOADER_COMMIT=${1:-HEAD}
FIRMWARE_COMMIT=${2:-HEAD}
2018-06-25 16:09:52 +00:00
docker build -t "$IMAGE" .
docker run -it -v $(pwd):/src:z --user="$(stat -c "%u:%g" .)" "$IMAGE" \
/src/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"