1
0
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:
Pavol Rusnak 2016-11-16 23:45:56 +01:00
parent ecac1d79f2
commit 93ad93ff94
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
_attic/
vendor/src/
emu.config

7
emu.sh
View File

@ -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