1
0
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:
Pavol Rusnak 2020-11-18 14:33:06 +01:00 committed by Tomas Susanka
parent 2d4b91b52a
commit 6508d0a3c7
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,6 @@ CROSS_PORT_OPTS ?=
PRODUCTION ?= 0
PYOPT ?= 1
BITCOIN_ONLY ?= 0
RDI ?= 1
TREZOR_MODEL ?= T
TREZOR_MEMPERF ?= 0

View File

@ -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',
]