From a411a964e1e7549178e5f6d301a1d195848e8835 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 28 Apr 2022 12:05:47 +0200 Subject: [PATCH] fix(core): re-enable passing of TREZOR_EMULATOR_RASPI flag to re-enable build of Emulator for Raspberry Pi with a display related to commit daf0d77 which removed the functionality from the makefile but we missed that there is now no way how to pass the flag to emit the #define [no changelog] --- core/SConscript.unix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/SConscript.unix b/core/SConscript.unix index 5fe735fef9..9249c12b7b 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -21,6 +21,7 @@ SOURCE_MOD = [ PYOPT = ARGUMENTS.get('PYOPT', '1') FROZEN = ARGUMENTS.get('TREZOR_EMULATOR_FROZEN', 0) +RASPI = os.getenv('TREZOR_EMULATOR_RASPI') == '1' # modtrezorconfig CPPPATH_MOD += [ @@ -188,6 +189,8 @@ if UI2: ] if FROZEN: CPPDEFINES_MOD += ['TREZOR_EMULATOR_FROZEN'] +if RASPI: + CPPDEFINES_MOD += ['TREZOR_EMULATOR_RASPI'] # modtrezorutils SOURCE_MOD += [