1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4zephyr_library_link_libraries(subsys__bluetooth)
5
6zephyr_library_sources(
7  lll/lll.c
8  )
9if(CONFIG_BT_BROADCASTER)
10  zephyr_library_sources(
11    lll/lll_adv.c
12    )
13endif()
14if(CONFIG_BT_OBSERVER)
15  zephyr_library_sources(
16    lll/lll_scan.c
17    )
18endif()
19if(CONFIG_BT_CONN)
20  zephyr_library_sources(
21    lll/lll_clock.c
22    lll/lll_conn.c
23    )
24  if(CONFIG_BT_PERIPHERAL)
25    zephyr_library_sources(
26      lll/lll_peripheral.c
27      )
28  endif()
29  if(CONFIG_BT_CENTRAL)
30    zephyr_library_sources(
31      lll/lll_central.c
32      )
33  endif()
34endif()
35
36zephyr_library_sources_ifdef(
37  CONFIG_BT_CTLR_DTM
38  lll/lll_test.c
39  )
40
41zephyr_library_sources(
42  hal/RV32M1/cntr.c
43  hal/RV32M1/ecb.c
44  hal/RV32M1/radio/radio.c
45  hal/RV32M1/mayfly.c
46  hal/RV32M1/ticker.c
47  )
48
49zephyr_library_include_directories(
50  .
51  ../../../controller
52  ../../../controller/ll_sw
53  ../../../controller/include
54  )
55
56zephyr_library_compile_options_ifdef(
57  CONFIG_BT_CTLR_OPTIMIZE_FOR_SPEED
58  ${OPTIMIZE_FOR_SPEED_FLAG}
59  )
60