mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
core: add possibility to pass PYOPT to emulator frozen build
This commit is contained in:
parent
60d1d93228
commit
b8726e74c8
@ -17,6 +17,7 @@ UNIX_PORT_OPTS ?=
|
||||
CROSS_PORT_OPTS ?=
|
||||
|
||||
PRODUCTION ?= 0
|
||||
PYOPT ?= 1
|
||||
|
||||
STLINK_VER ?= v2
|
||||
OPENOCD = openocd -f interface/stlink-$(STLINK_VER).cfg -c "transport select hla_swd" -f target/stm32f4x.cfg
|
||||
@ -110,7 +111,7 @@ build_unix: res ## build unix port
|
||||
$(SCONS) CFLAGS="$(CFLAGS)" $(UNIX_BUILD_DIR)/micropython $(UNIX_PORT_OPTS)
|
||||
|
||||
build_unix_frozen: res build_cross ## build unix port with frozen modules
|
||||
$(SCONS) CFLAGS="$(CFLAGS)" $(UNIX_BUILD_DIR)/micropython $(UNIX_PORT_OPTS) TREZOR_EMULATOR_FROZEN=1
|
||||
$(SCONS) CFLAGS="$(CFLAGS)" $(UNIX_BUILD_DIR)/micropython $(UNIX_PORT_OPTS) PYOPT="$(PYOPT)" TREZOR_EMULATOR_FROZEN=1
|
||||
|
||||
build_cross: ## build mpy-cross port
|
||||
$(MAKE) -C vendor/micropython/mpy-cross $(CROSS_PORT_OPTS)
|
||||
|
@ -8,7 +8,7 @@ CPPDEFINES_MOD = []
|
||||
SOURCE_MOD = []
|
||||
SOURCE_MOD_SECP256K1_ZKP = []
|
||||
|
||||
PYOPT = '1'
|
||||
PYOPT = ARGUMENTS.get('PYOPT', '1')
|
||||
|
||||
# modtrezorconfig
|
||||
CPPPATH_MOD += [
|
||||
|
Loading…
Reference in New Issue
Block a user