mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-23 07:58:09 +00:00
12 lines
265 B
Bash
Executable File
12 lines
265 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
IMAGE=trezor-mcu-build
|
|
|
|
BOOTLOADER_COMMIT=${1:-HEAD}
|
|
FIRMWARE_COMMIT=${2:-HEAD}
|
|
|
|
docker build -t "$IMAGE" .
|
|
docker run -it -v $(pwd):/src:z --user="$(stat -c "%u:%g" .)" "$IMAGE" \
|
|
/src/script/fullbuild "$BOOTLOADER_COMMIT" "$FIRMWARE_COMMIT"
|