Bluetooth: Controller: Fix regression using speed optimization

Fix regression using speed optimization introduced in
commit 1b7fe792e0 ("Bluetooth: Controller: Support Link
Time Optimizations (LTO)").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2024-06-28 04:43:22 +02:00 committed by Fabio Baltieri
commit 642d4be940

View file

@ -607,7 +607,7 @@ config BT_CTLR_DYNAMIC_INTERRUPTS
permit use of SoC's peripheral for custom use when Bluetooth is not permit use of SoC's peripheral for custom use when Bluetooth is not
enabled. enabled.
choice choice BT_CTLR_OPTIMIZE
prompt "Optimization options" prompt "Optimization options"
depends on !LTO depends on !LTO
default BT_CTLR_OPTIMIZE_FOR_SPEED default BT_CTLR_OPTIMIZE_FOR_SPEED
@ -1256,6 +1256,16 @@ config BT_CTLR_USER_CPR_ANCHOR_POINT_MOVE
endmenu endmenu
# Workaround to be able to have default for "choice" in hidden "menu" above
choice BT_CTLR_OPTIMIZE
prompt "Optimization options"
depends on !LTO
config BT_CTLR_OPTIMIZE_FOR_SPEED
bool "Optimize for Speed"
endchoice
source "subsys/bluetooth/controller/coex/Kconfig" source "subsys/bluetooth/controller/coex/Kconfig"
comment "BLE Controller debug configuration" comment "BLE Controller debug configuration"