mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-20 14:39:22 +00:00
refactor(core): turn RDI into a firmware feature flag
This commit is contained in:
parent
2d4b91b52a
commit
6508d0a3c7
@ -20,7 +20,6 @@ CROSS_PORT_OPTS ?=
|
||||
PRODUCTION ?= 0
|
||||
PYOPT ?= 1
|
||||
BITCOIN_ONLY ?= 0
|
||||
RDI ?= 1
|
||||
TREZOR_MODEL ?= T
|
||||
TREZOR_MEMPERF ?= 0
|
||||
|
||||
|
@ -3,10 +3,13 @@
|
||||
import os
|
||||
|
||||
BITCOIN_ONLY = ARGUMENTS.get('BITCOIN_ONLY', '0')
|
||||
RDI = ARGUMENTS.get('RDI', '1') == '1'
|
||||
EVERYTHING = BITCOIN_ONLY != '1'
|
||||
TREZOR_MODEL = ARGUMENTS.get('TREZOR_MODEL', 'T')
|
||||
|
||||
FEATURE_FLAGS = {
|
||||
"RDI": True,
|
||||
}
|
||||
|
||||
CCFLAGS_MOD = ''
|
||||
CPPPATH_MOD = []
|
||||
CPPDEFINES_MOD = []
|
||||
@ -343,7 +346,7 @@ SOURCE_TREZORHAL = [
|
||||
'embed/trezorhal/vectortable.s',
|
||||
]
|
||||
|
||||
if RDI:
|
||||
if FEATURE_FLAGS["RDI"]:
|
||||
SOURCE_TREZORHAL += [
|
||||
'embed/trezorhal/rdi.c',
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user