mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-16 17:42:02 +00:00
emu.sh: rename OPTLEVEL to PYOPT (to match variable name used in the C source)
This commit is contained in:
parent
fc69ddf38f
commit
df967821e7
@ -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:
|
If you want to test against the emulator, run it in a separate terminal from the `trezor-core` checkout directory:
|
||||||
```sh
|
```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:
|
Find the device address and export it as an environment variable. For the emulator, this is:
|
||||||
|
4
emu.sh
4
emu.sh
@ -3,12 +3,12 @@
|
|||||||
source emu.config 2>/dev/null
|
source emu.config 2>/dev/null
|
||||||
|
|
||||||
EXE=build/unix/micropython
|
EXE=build/unix/micropython
|
||||||
OPTLEVEL="${OPTLEVEL:-1}"
|
PYOPT="${PYOPT:-1}"
|
||||||
MAIN="${MAIN:-main.py}"
|
MAIN="${MAIN:-main.py}"
|
||||||
BROWSER="${BROWSER:-chromium}"
|
BROWSER="${BROWSER:-chromium}"
|
||||||
HEAPSIZE="${HEAPSIZE:-800K}"
|
HEAPSIZE="${HEAPSIZE:-800K}"
|
||||||
|
|
||||||
ARGS="-O${OPTLEVEL} -X heapsize=${HEAPSIZE}"
|
ARGS="-O${PYOPT} -X heapsize=${HEAPSIZE}"
|
||||||
|
|
||||||
cd `dirname $0`/src
|
cd `dirname $0`/src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user