1
0
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:
Pavol Rusnak 2017-08-16 18:25:55 +02:00
parent e4cc08775f
commit e5d3a2169b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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