1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

build(core): move argument parsing together

[no changelog]
This commit is contained in:
Ondřej Vejpustek 2024-10-03 18:00:24 +02:00
parent cf38460286
commit e8f8d0e7af

View File

@ -12,6 +12,9 @@ HW_REVISION ='emulator'
THP = ARGUMENTS.get('THP', '0') == '1' # Trezor-Host Protocol
NEW_RENDERING = ARGUMENTS.get('NEW_RENDERING', '1') == '1'
BENCHMARK = ARGUMENTS.get('BENCHMARK', '0') == '1'
PYOPT = ARGUMENTS.get('PYOPT', '1')
FROZEN = ARGUMENTS.get('TREZOR_EMULATOR_FROZEN', 0)
RASPI = os.getenv('TREZOR_EMULATOR_RASPI') == '1'
FEATURES_WANTED = ["input", "sd_card", "dma2d", "optiga", "sbu"]
@ -45,10 +48,6 @@ SOURCE_MOD = [
SOURCE_MOD_CRYPTO = []
RUST_UI_FEATURES = []
PYOPT = ARGUMENTS.get('PYOPT', '1')
FROZEN = ARGUMENTS.get('TREZOR_EMULATOR_FROZEN', 0)
RASPI = os.getenv('TREZOR_EMULATOR_RASPI') == '1'
# modtrezorconfig
CPPPATH_MOD += [
'embed/extmod/modtrezorconfig',