mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-12 18:49:07 +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/
|
||||
vendor/src/
|
||||
emu.config
|
||||
|
7
emu.sh
7
emu.sh
@ -1,9 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
ARGS="${ARGS:--O0 -X heapsize=100000}"
|
||||
source emu.config 2>/dev/null
|
||||
|
||||
OPTLEVEL="${OPTLEVEL:-0}"
|
||||
HEAPSIZE="${HEAPSIZE:-100000}"
|
||||
MAIN="${MAIN:-main.py}"
|
||||
BROWSER="${BROWSER:-chromium}"
|
||||
|
||||
ARGS="-O${OPTLEVEL} -X heapsize=${HEAPSIZE}"
|
||||
|
||||
cd `dirname $0`/src
|
||||
|
||||
case "$1" in
|
||||
|
Loading…
Reference in New Issue
Block a user