@@ -221,17 +221,19 @@ else() # Regular app build
221221 endif ()
222222
223223 elseif (target STREQUAL "esp32c3" )
224- if (CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
224+ if (CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND NOT CONFIG_BT_CTRL_HCI_MODE_UART_H4 )
225225 if (NOT CONFIG_BT_CTRL_BLE_MASTER)
226226 rom_linker_script("ble_master" )
227227 endif ()
228- if (NOT CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT AND NOT CONFIG_BT_BLE_50_FEATURES_SUPPORTED)
229- rom_linker_script("ble_50" )
228+ if (NOT CONFIG_BT_CONTROLLER_ONLY)
229+ if (NOT CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT AND NOT CONFIG_BT_BLE_50_FEATURES_SUPPORTED)
230+ rom_linker_script("ble_50" )
231+ endif ()
230232 endif ()
231233 if (CONFIG_BT_BLE_CCA_MODE_NONE)
232234 rom_linker_script("ble_cca" )
233235 endif ()
234- if (NOT CONFIG_BT_NIMBLE_SECURITY_ENABLE AND NOT CONFIG_BT_BLE_SMP_ENABLE )
236+ if (NOT CONFIG_BT_CTRL_BLE_SECURITY_ENABLE )
235237 rom_linker_script("ble_smp" )
236238 endif ()
237239 if (NOT CONFIG_BT_CTRL_DTM_ENABLE)
@@ -259,17 +261,19 @@ else() # Regular app build
259261 endif ()
260262 endif ()
261263 elseif (target STREQUAL "esp32s3" )
262- if (CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY)
264+ if (CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND NOT CONFIG_BT_CTRL_HCI_MODE_UART_H4 )
263265 if (NOT CONFIG_BT_CTRL_BLE_MASTER)
264266 rom_linker_script("ble_master" )
265267 endif ()
266- if (NOT CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT AND NOT CONFIG_BT_BLE_50_FEATURES_SUPPORTED)
267- rom_linker_script("ble_50" )
268+ if (NOT CONFIG_BT_CONTROLLER_ONLY)
269+ if (NOT CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT AND NOT CONFIG_BT_BLE_50_FEATURES_SUPPORTED)
270+ rom_linker_script("ble_50" )
271+ endif ()
268272 endif ()
269273 if (CONFIG_BT_BLE_CCA_MODE_NONE)
270274 rom_linker_script("ble_cca" )
271275 endif ()
272- if (NOT CONFIG_BT_NIMBLE_SECURITY_ENABLE AND NOT CONFIG_BT_BLE_SMP_ENABLE )
276+ if (NOT CONFIG_BT_CTRL_BLE_SECURITY_ENABLE )
273277 rom_linker_script("ble_smp" )
274278 endif ()
275279 if (NOT CONFIG_BT_CTRL_DTM_ENABLE)
0 commit comments