1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-18 16:19:02 +00:00

chore(core/build): don't build with Tropic by default

[no changelog]

Co-authored-by: Martin Milata <martin@martinmilata.cz>
This commit is contained in:
Ioan Bizău 2025-03-19 13:04:58 +01:00 committed by Ioan Bizău
parent 419737db7c
commit b1cd4cb469
3 changed files with 8 additions and 2 deletions

View File

@ -192,6 +192,7 @@ jobs:
TREZOR_MODEL: ${{ matrix.model }}
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
LSAN_OPTIONS: "suppressions=../../asan_suppressions.txt"
DISABLE_TROPIC: 0
steps:
- uses: actions/checkout@v4
with:

View File

@ -32,6 +32,7 @@ BITCOIN_ONLY ?= 0
BOOTLOADER_QA ?= 0
BOOTLOADER_DEVEL ?= 0
DISABLE_OPTIGA ?= 0
DISABLE_TROPIC ?= 1
TREZOR_MODEL ?= T2T1
TREZOR_MEMPERF ?= 0
ADDRESS_SANITIZER ?= 0
@ -125,6 +126,7 @@ SCONS_VARS = \
CFLAGS="$(CFLAGS)" \
CMAKELISTS="$(CMAKELISTS)" \
DISABLE_OPTIGA="$(DISABLE_OPTIGA)" \
DISABLE_TROPIC="$(DISABLE_TROPIC)" \
LOG_STACK_USAGE="$(LOG_STACK_USAGE)" \
PRODUCTION="$(PRODUCTION)" \
PYOPT="$(PYOPT)" \

View File

@ -11,17 +11,20 @@ TREZOR_MODEL = ARGUMENTS.get('TREZOR_MODEL', 'T2T1')
CMAKELISTS = int(ARGUMENTS.get('CMAKELISTS', 0))
HW_REVISION ='emulator'
THP = ARGUMENTS.get('THP', '0') == '1' # Trezor-Host Protocol
DISABLE_TROPIC = ARGUMENTS.get('DISABLE_TROPIC', '0') == '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'
if BENCHMARK and PYOPT != '0':
print("BENCHMARK=1 works only with PYOPT=0.")
exit(1)
FEATURES_WANTED = ["input", "sd_card", "dma2d", "optiga", "tropic"]
FEATURES_WANTED = ["input", "sd_card", "dma2d", "optiga"]
if not DISABLE_TROPIC:
FEATURES_WANTED.append('tropic')
if not models.has_emulator(TREZOR_MODEL):
# skip unix build