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

emu.sh: rename OPTLEVEL to PYOPT (to match variable name used in the C source)

This commit is contained in:
Pavol Rusnak 2018-05-22 16:36:24 +02:00
parent fc69ddf38f
commit df967821e7
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ python setup.py develop
If you want to test against the emulator, run it in a separate terminal from the `trezor-core` checkout directory:
```sh
OPTLEVEL=0 ./emu.sh
PYOPT=0 ./emu.sh
```
Find the device address and export it as an environment variable. For the emulator, this is:

4
emu.sh
View File

@ -3,12 +3,12 @@
source emu.config 2>/dev/null
EXE=build/unix/micropython
OPTLEVEL="${OPTLEVEL:-1}"
PYOPT="${PYOPT:-1}"
MAIN="${MAIN:-main.py}"
BROWSER="${BROWSER:-chromium}"
HEAPSIZE="${HEAPSIZE:-800K}"
ARGS="-O${OPTLEVEL} -X heapsize=${HEAPSIZE}"
ARGS="-O${PYOPT} -X heapsize=${HEAPSIZE}"
cd `dirname $0`/src