mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-17 10:51:00 +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
|
IMAGE=trezor-mcu-build
|
||||||
TAG=${1:-master}
|
TAG=${1:-master}
|
||||||
BINFILE=build/bootloader-$TAG.bin
|
BINFILE=build/bootloader-$TAG.bin
|
||||||
|
ELFFILE=build/bootloader-$TAG.elf
|
||||||
|
|
||||||
docker build -t $IMAGE .
|
docker build -t $IMAGE .
|
||||||
docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
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 && \
|
||||||
make -C bootloader && \
|
make -C bootloader && \
|
||||||
make -C bootloader align && \
|
make -C bootloader align && \
|
||||||
cp bootloader/bootloader.bin /$BINFILE"
|
cp bootloader/bootloader.bin /$BINFILE && \
|
||||||
|
cp bootloader/bootloader.elf /$ELFFILE"
|
||||||
/usr/bin/env python -c "
|
/usr/bin/env python -c "
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import hashlib
|
import hashlib
|
||||||
|
@ -4,6 +4,7 @@ set -e
|
|||||||
IMAGE=trezor-mcu-build
|
IMAGE=trezor-mcu-build
|
||||||
TAG=${1:-master}
|
TAG=${1:-master}
|
||||||
BINFILE=build/trezor-$TAG.bin
|
BINFILE=build/trezor-$TAG.bin
|
||||||
|
ELFFILE=build/trezor-$TAG.elf
|
||||||
|
|
||||||
docker build -t $IMAGE .
|
docker build -t $IMAGE .
|
||||||
docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
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 && \
|
||||||
make -C firmware && \
|
make -C firmware && \
|
||||||
make -C firmware sign && \
|
make -C firmware sign && \
|
||||||
cp firmware/trezor.bin /$BINFILE"
|
cp firmware/trezor.bin /$BINFILE && \
|
||||||
|
cp firmware/trezor.elf /$ELFFILE"
|
||||||
|
|
||||||
/usr/bin/env python -c "
|
/usr/bin/env python -c "
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
Loading…
Reference in New Issue
Block a user