mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 05:03:07 +00:00
build: update docker build scripts to copy also .elf files to output directory
This commit is contained in:
parent
e4cc08775f
commit
e5d3a2169b
@ -4,6 +4,7 @@ set -e
|
||||
IMAGE=trezor-mcu-build
|
||||
TAG=${1:-master}
|
||||
BINFILE=build/bootloader-$TAG.bin
|
||||
ELFFILE=build/bootloader-$TAG.elf
|
||||
|
||||
docker build -t $IMAGE .
|
||||
docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
||||
@ -15,8 +16,8 @@ docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
||||
make && \
|
||||
make -C bootloader && \
|
||||
make -C bootloader align && \
|
||||
cp bootloader/bootloader.bin /$BINFILE"
|
||||
|
||||
cp bootloader/bootloader.bin /$BINFILE && \
|
||||
cp bootloader/bootloader.elf /$ELFFILE"
|
||||
/usr/bin/env python -c "
|
||||
from __future__ import print_function
|
||||
import hashlib
|
||||
|
@ -4,6 +4,7 @@ set -e
|
||||
IMAGE=trezor-mcu-build
|
||||
TAG=${1:-master}
|
||||
BINFILE=build/trezor-$TAG.bin
|
||||
ELFFILE=build/trezor-$TAG.elf
|
||||
|
||||
docker build -t $IMAGE .
|
||||
docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
||||
@ -15,7 +16,8 @@ docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
||||
make && \
|
||||
make -C firmware && \
|
||||
make -C firmware sign && \
|
||||
cp firmware/trezor.bin /$BINFILE"
|
||||
cp firmware/trezor.bin /$BINFILE && \
|
||||
cp firmware/trezor.elf /$ELFFILE"
|
||||
|
||||
/usr/bin/env python -c "
|
||||
from __future__ import print_function
|
||||
|
Loading…
Reference in New Issue
Block a user