1# SPDX-License-Identifier: Apache-2.0
2
3
4add_library(CMSIS INTERFACE)
5
6target_include_directories(CMSIS INTERFACE ${PROJECT_SOURCE_DIR}/include/zephyr/portability)
7
8zephyr_library()
9zephyr_library_sources_ifdef(
10  CONFIG_CMSIS_RTOS_V2
11  thread.c
12  kernel.c
13  timer.c
14  mutex.c
15  semaphore.c
16  mempool.c
17  msgq.c
18  event_flags.c
19  thread_flags.c
20)
21
22zephyr_library_include_directories(
23  ${ZEPHYR_BASE}/kernel/include
24  ${ZEPHYR_BASE}/arch/${ARCH}/include
25)
26
27zephyr_library_link_libraries(CMSIS)
28