Clean up the nRF cmake include file to remove redundant check for BT_LLL_VENDOR_NORDIC inside the file. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
91 lines
1.8 KiB
CMake
91 lines
1.8 KiB
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_BT_LL_SW_LEGACY)
|
|
zephyr_library_sources(
|
|
ll_sw/ctrl.c
|
|
ll_sw/ll.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_BROADCASTER
|
|
ll_sw/ll_adv.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_OBSERVER
|
|
ll_sw/ll_scan.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_FILTER
|
|
ll_sw/ll_filter.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CENTRAL
|
|
ll_sw/ll_master.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_ADV_EXT
|
|
ll_sw/ll_adv_aux.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_HCI_MESH_EXT
|
|
ll_sw/ll_mesh.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_DTM
|
|
ll_sw/ll_test.c
|
|
)
|
|
endif()
|
|
|
|
if(CONFIG_BT_LL_SW_SPLIT)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll.c
|
|
)
|
|
if(CONFIG_BT_BROADCASTER)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_adv.c
|
|
)
|
|
endif()
|
|
if(CONFIG_BT_OBSERVER)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_scan.c
|
|
)
|
|
endif()
|
|
if(CONFIG_BT_CONN)
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/lll/lll_clock.c
|
|
ll_sw/nordic/lll/lll_conn.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_PERIPHERAL
|
|
ll_sw/nordic/lll/lll_slave.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CENTRAL
|
|
ll_sw/nordic/lll/lll_master.c
|
|
)
|
|
endif()
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_DTM
|
|
ll_sw/nordic/lll/lll_test.c
|
|
)
|
|
zephyr_library_sources_ifdef(
|
|
CONFIG_BT_CTLR_PROFILE_ISR
|
|
ll_sw/nordic/lll/lll_prof.c
|
|
)
|
|
zephyr_library_include_directories(
|
|
ll_sw/nordic/lll
|
|
)
|
|
endif()
|
|
|
|
zephyr_library_sources(
|
|
ll_sw/nordic/hal/nrf5/cntr.c
|
|
ll_sw/nordic/hal/nrf5/ecb.c
|
|
ll_sw/nordic/hal/nrf5/radio/radio.c
|
|
ll_sw/nordic/hal/nrf5/mayfly.c
|
|
ll_sw/nordic/hal/nrf5/ticker.c
|
|
)
|
|
|
|
zephyr_library_include_directories(
|
|
ll_sw/nordic
|
|
hci/nordic
|
|
)
|