mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-03 03:11:17 +00:00
emu: extract options to (ignored) emu.config
This commit is contained in:
parent
ecac1d79f2
commit
93ad93ff94
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
_attic/
|
_attic/
|
||||||
vendor/src/
|
vendor/src/
|
||||||
|
emu.config
|
||||||
|
7
emu.sh
7
emu.sh
@ -1,9 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ARGS="${ARGS:--O0 -X heapsize=100000}"
|
source emu.config 2>/dev/null
|
||||||
|
|
||||||
|
OPTLEVEL="${OPTLEVEL:-0}"
|
||||||
|
HEAPSIZE="${HEAPSIZE:-100000}"
|
||||||
MAIN="${MAIN:-main.py}"
|
MAIN="${MAIN:-main.py}"
|
||||||
BROWSER="${BROWSER:-chromium}"
|
BROWSER="${BROWSER:-chromium}"
|
||||||
|
|
||||||
|
ARGS="-O${OPTLEVEL} -X heapsize=${HEAPSIZE}"
|
||||||
|
|
||||||
cd `dirname $0`/src
|
cd `dirname $0`/src
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
Reference in New Issue
Block a user