Skip to content

Commit 642d4be

Browse files
cvinayakfabiobaltieri
authored andcommitted
Bluetooth: Controller: Fix regression using speed optimization
Fix regression using speed optimization introduced in commit 1b7fe79 ("Bluetooth: Controller: Support Link Time Optimizations (LTO)"). Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent b9a7a64 commit 642d4be

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

subsys/bluetooth/controller/Kconfig.ll_sw_split

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ config BT_CTLR_DYNAMIC_INTERRUPTS
607607
permit use of SoC's peripheral for custom use when Bluetooth is not
608608
enabled.
609609

610-
choice
610+
choice BT_CTLR_OPTIMIZE
611611
prompt "Optimization options"
612612
depends on !LTO
613613
default BT_CTLR_OPTIMIZE_FOR_SPEED
@@ -1256,6 +1256,16 @@ config BT_CTLR_USER_CPR_ANCHOR_POINT_MOVE
12561256

12571257
endmenu
12581258

1259+
# Workaround to be able to have default for "choice" in hidden "menu" above
1260+
choice BT_CTLR_OPTIMIZE
1261+
prompt "Optimization options"
1262+
depends on !LTO
1263+
1264+
config BT_CTLR_OPTIMIZE_FOR_SPEED
1265+
bool "Optimize for Speed"
1266+
1267+
endchoice
1268+
12591269
source "subsys/bluetooth/controller/coex/Kconfig"
12601270

12611271
comment "BLE Controller debug configuration"

0 commit comments

Comments
 (0)