1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-15 23:05:45 +00:00

build(core): only include apps.management.ble when needed

[no changelog]
This commit is contained in:
Martin Milata 2025-04-03 12:40:13 +02:00 committed by TychoVrahe
parent 1fc6feda80
commit 199c02adb2
2 changed files with 10 additions and 2 deletions

View File

@ -636,7 +636,11 @@ if FROZEN:
SOURCE_PY_DIR + 'apps/management/sd_protect.py',
] if not SDCARD else [])
)
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*/*.py',
exclude=[
SOURCE_PY_DIR + 'apps/management/ble/*.py',
] if "ble" not in FEATURES_AVAILABLE else [])
)
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/misc/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/bitcoin/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/bitcoin/*/*.py',

View File

@ -690,7 +690,11 @@ if FROZEN:
SOURCE_PY_DIR + 'apps/management/authenticate_device.py',
] if "optiga" not in FEATURES_AVAILABLE else [])
)
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/management/*/*.py',
exclude=[
SOURCE_PY_DIR + 'apps/management/ble/*.py',
] if "ble" not in FEATURES_AVAILABLE else [])
)
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/misc/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/bitcoin/*.py'))
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'apps/bitcoin/*/*.py',