mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-23 07:58:09 +00:00
1f377bd9f6
Emulator is a 64-bit application now, so we should install 64-bit version of libSDL. Rename docker image and emulator filename to indicate 64-bitness as well.
20 lines
547 B
Bash
Executable File
20 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
IMAGE=trezor-mcu-build-emulator64
|
|
TAG=${1:-master}
|
|
ELFFILE=build/trezor-emulator64-$TAG
|
|
|
|
docker build -f Dockerfile.emulator -t $IMAGE .
|
|
docker run -t -v $(pwd)/build:/build:z $IMAGE /bin/sh -c "\
|
|
git clone https://github.com/trezor/trezor-mcu && \
|
|
cd trezor-mcu && \
|
|
git checkout $TAG && \
|
|
git submodule update --init && \
|
|
make -C vendor/nanopb/generator/proto && \
|
|
make -C firmware/protob && \
|
|
EMULATOR=1 make && \
|
|
EMULATOR=1 make -C emulator && \
|
|
EMULATOR=1 make -C firmware && \
|
|
cp firmware/trezor.elf /$ELFFILE"
|