zephyr/subsys/bluetooth/controller/ll_sw/openisa.cmake
Alex Porosanu 3412612085 bluetooth: controller: refactor CMake related files
Zephyr aims to enable supporting of multiple SW defined
BLE LL. There is a complex hierarchy of defines in the
CMake files controlling the compilation units that part of
the final library. Adding another SW LL implementation
from a different SoC provider will make the main controller
CMake file unmaintable.
As such, split the into vendor-specific CMake files for
easier additions.

Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com>
2020-01-23 16:08:00 +01:00

61 lines
1.3 KiB
CMake

# SPDX-License-Identifier: Apache-2.0
if(CONFIG_BT_LL_SW_SPLIT)
zephyr_library_sources(
ll_sw/openisa/lll/lll.c
)
if(CONFIG_BT_BROADCASTER)
zephyr_library_sources(
ll_sw/openisa/lll/lll_adv.c
)
endif()
if(CONFIG_BT_OBSERVER)
zephyr_library_sources(
ll_sw/openisa/lll/lll_scan.c
)
endif()
if(CONFIG_BT_CONN)
zephyr_library_sources(
ll_sw/openisa/lll/lll_clock.c
ll_sw/openisa/lll/lll_conn.c
)
if(CONFIG_BT_PERIPHERAL)
zephyr_library_sources(
ll_sw/openisa/lll/lll_slave.c
)
endif()
if(CONFIG_BT_CENTRAL)
zephyr_library_sources(
ll_sw/openisa/lll/lll_master.c
)
endif()
endif()
zephyr_library_include_directories(
ll_sw/openisa/lll
)
zephyr_library_sources_ifdef(
CONFIG_BT_CTLR_DTM
ll_sw/openisa/lll/lll_test.c
)
zephyr_library_sources_ifdef(
CONFIG_BT_CTLR_PROFILE_ISR
ll_sw/openisa/lll/lll_test.c
)
endif()
zephyr_library_sources_ifdef(
CONFIG_SOC_OPENISA_RV32M1_RISCV32
ll_sw/openisa/hal/RV32M1/cntr.c
ll_sw/openisa/hal/RV32M1/ecb.c
ll_sw/openisa/hal/RV32M1/radio/radio.c
ll_sw/openisa/hal/RV32M1/mayfly.c
ll_sw/openisa/hal/RV32M1/ticker.c
)
if(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
zephyr_library_include_directories(
ll_sw/openisa
hci/openisa
)
endif()