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

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

[no changelog]
This commit is contained in:
Ioan Bizău 2025-03-19 13:04:58 +01:00
parent f4328acfd6
commit c4953db271
3 changed files with 8 additions and 3 deletions
.github/workflows
core

View File

@ -197,7 +197,7 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/environment
- run: nix-shell --run "poetry run make -C core build_unix"
- run: nix-shell --run "export DISABLE_TROPIC=0; poetry run make -C core build_unix"
- run: nix-shell --run "cd vendor/ts-tvl/tvl/server/model_config && poetry install && poetry run model_server tcp -c model_config.yml &"
- run: nix-shell --run "poetry run make -C core test"

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