Skip to content

Commit f972fb0

Browse files
cvinayakjhedberg
authored andcommitted
Bluetooth: controller: Add Kconfig for Optimize for Speed
Add Kconfig option to support building the controller optimized for speed. Fixes #21601. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent e1d9620 commit f972fb0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

subsys/bluetooth/controller/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ zephyr_library_include_directories(
8585
)
8686

8787
zephyr_library_compile_options_ifdef(
88-
CONFIG_BT_CTLR_FAST_ENC
88+
CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED
8989
${OPTIMIZE_FOR_SPEED_FLAG}
9090
)
9191

subsys/bluetooth/controller/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,12 @@ config BT_CTLR_ZLI
576576
shall not use Zero Latency IRQ themselves when this option is selected,
577577
else will impact controller stability.
578578

579+
config BT_CTLR_OPTIMIZE_FOR_SPEED
580+
bool "Optimize for Speed"
581+
default y if BT_CTLR_LE_ENC
582+
help
583+
Optimize compilation of controller for execution speed.
584+
579585
if BT_LL_SW_LEGACY
580586

581587
config BT_CTLR_WORKER_PRIO

0 commit comments

Comments
 (0)