From 2f797b83d99932240f870352e958d62f30fdb4b3 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Fri, 28 Feb 2020 12:20:33 +0530 Subject: [PATCH] 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 --- subsys/bluetooth/controller/CMakeLists.txt | 2 +- subsys/bluetooth/controller/Kconfig | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/controller/CMakeLists.txt b/subsys/bluetooth/controller/CMakeLists.txt index b1a8f0054d74..edd188175205 100644 --- a/subsys/bluetooth/controller/CMakeLists.txt +++ b/subsys/bluetooth/controller/CMakeLists.txt @@ -85,7 +85,7 @@ zephyr_library_include_directories( ) zephyr_library_compile_options_ifdef( - CONFIG_BT_CTLR_FAST_ENC + CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED ${OPTIMIZE_FOR_SPEED_FLAG} ) diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 443e1b6a6038..ee5607d8266e 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -576,6 +576,12 @@ config BT_CTLR_ZLI shall not use Zero Latency IRQ themselves when this option is selected, else will impact controller stability. +config BT_CTLR_OPTIMIZE_FOR_SPEED + bool "Optimize for Speed" + default y if BT_CTLR_LE_ENC + help + Optimize compilation of controller for execution speed. + if BT_LL_SW_LEGACY config BT_CTLR_WORKER_PRIO