From de43dde1e97e4ddb890d72fc2ce79cbbb537aa4e Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 27 Jul 2020 17:37:22 +0200 Subject: [PATCH] core: make emu.sh respect TREZOR_MODEL env variable --- core/emu.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/emu.sh b/core/emu.sh index 970d689a1f..f59e015b2a 100755 --- a/core/emu.sh +++ b/core/emu.sh @@ -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