mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(core): fix DISC2 build
[no changelog]
This commit is contained in:
parent
ffe1ac7d7e
commit
76e98ecc3d
@ -8,7 +8,7 @@ CMAKELISTS = int(ARGUMENTS.get('CMAKELISTS', 0))
|
||||
HW_REVISION = 'emulator'
|
||||
NEW_RENDERING = ARGUMENTS.get('NEW_RENDERING', '1') == '1'
|
||||
|
||||
if TREZOR_MODEL in ('1', 'DISC1'):
|
||||
if TREZOR_MODEL in ('1', 'DISC1', 'DISC2'):
|
||||
# skip bootloader build
|
||||
env = Environment()
|
||||
def build_bootloader(target,source,env):
|
||||
|
@ -100,15 +100,15 @@ def configure(
|
||||
features_available.append("framebuffer")
|
||||
features_available.append("framebuffer32bit")
|
||||
|
||||
if "new_rendering" in features_wanted:
|
||||
defines += ["XFRAMEBUFFER"]
|
||||
defines += ["DISPLAY_RGBA8888"]
|
||||
features_available.append("xframebuffer")
|
||||
features_available.append("display_rgba8888")
|
||||
|
||||
env.get("ENV")["LINKER_SCRIPT"] = linker_script
|
||||
|
||||
defs = env.get("CPPDEFINES_IMPLICIT")
|
||||
defs += ["__ARM_FEATURE_CMSE=3"]
|
||||
|
||||
rust_defs = env.get("ENV")["RUST_INCLUDES"]
|
||||
rust_defs += "-DFRAMEBUFFER;"
|
||||
if "new_rendering" in features_wanted:
|
||||
rust_defs += "-DXFRAMEBUFFER;"
|
||||
env.get("ENV")["RUST_INCLUDES"] = rust_defs
|
||||
|
||||
return features_available
|
||||
|
Loading…
Reference in New Issue
Block a user