1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_syscall_header(
4  ${ZEPHYR_BASE}/include/zephyr/sys/mutex.h
5)
6
7zephyr_sources(
8  cbprintf_packaged.c
9  printk.c
10  sem.c
11  thread_entry.c
12  )
13
14zephyr_sources_ifdef(CONFIG_FDTABLE fdtable.c)
15zephyr_syscall_header_ifdef(CONFIG_FDTABLE
16  ${ZEPHYR_BASE}/include/zephyr/sys/fdtable.h
17)
18
19zephyr_sources_ifdef(CONFIG_CBPRINTF_COMPLETE cbprintf_complete.c)
20zephyr_sources_ifdef(CONFIG_CBPRINTF_NANO cbprintf_nano.c)
21
22if(NOT CONFIG_PICOLIBC)
23  zephyr_sources(cbprintf.c)
24endif()
25
26if (CONFIG_ASSERT OR CONFIG_ASSERT_VERBOSE)
27zephyr_sources(assert.c)
28endif()
29
30zephyr_sources_ifdef(CONFIG_USERSPACE mutex.c user_work.c)
31
32zephyr_sources_ifdef(CONFIG_MPSC_PBUF mpsc_pbuf.c)
33
34zephyr_sources_ifdef(CONFIG_SPSC_PBUF spsc_pbuf.c)
35
36zephyr_sources_ifdef(CONFIG_SCHED_DEADLINE p4wq.c)
37
38zephyr_sources_ifdef(CONFIG_REBOOT reboot.c)
39
40zephyr_sources_ifdef(CONFIG_POWEROFF poweroff.c)
41
42zephyr_library_include_directories(
43  ${ZEPHYR_BASE}/kernel/include
44  ${ZEPHYR_BASE}/arch/${ARCH}/include
45)
46
47add_subdirectory_ifdef(CONFIG_ZVFS zvfs)
48