diff --git a/core/SConscript.firmware b/core/SConscript.firmware index 48effb8b41..ad9feedd01 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -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', diff --git a/core/SConscript.unix b/core/SConscript.unix index 5425b7237b..3114b84b8d 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -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',