You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/emu.sh

17 lines
317 B

#!/bin/sh
PYOPT="${PYOPT:-1}"
if [ -n "$1" ]; then
echo "This is just a compatibility wrapper. Use emu.py if you want features."
exit 1
fi
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