1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

core: make emu.sh respect TREZOR_MODEL env variable

This commit is contained in:
Pavol Rusnak 2020-07-27 17:37:22 +02:00
parent 8bc32d035b
commit de43dde1e9
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -6,5 +6,11 @@ if [ -n "$1" ]; then
exit 1
fi
cd src
TREZOR_MODEL="${TREZOR_MODEL:-T}"
if [ "$TREZOR_MODEL" = "T" ]; then
cd src
else
cd "src${TREZOR_MODEL}"
fi
../build/unix/micropython -O$PYOPT -X heapsize=20M -m main