kernel: syscalls: use zephyr_syscall_header
This adds a few line use zephyr_syscall_header() to include headers containing syscall function prototypes. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
97dc67e666
commit
b93ccd22c7
1 changed files with 21 additions and 0 deletions
|
|
@ -3,6 +3,27 @@
|
|||
# kernel is a normal CMake library and not a zephyr_library because it
|
||||
# should not be --whole-archive'd
|
||||
|
||||
zephyr_syscall_header(
|
||||
${ZEPHYR_BASE}/include/zephyr/device.h
|
||||
${ZEPHYR_BASE}/include/zephyr/kernel.h
|
||||
${ZEPHYR_BASE}/include/zephyr/sys/kobject.h
|
||||
${ZEPHYR_BASE}/include/zephyr/sys/time_units.h
|
||||
)
|
||||
|
||||
if(NOT CONFIG_ERRNO_IN_TLS AND NOT CONFIG_LIBC_ERRNO)
|
||||
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/sys/errno_private.h)
|
||||
endif()
|
||||
|
||||
zephyr_syscall_header_ifdef(
|
||||
CONFIG_ATOMIC_OPERATIONS_C
|
||||
${ZEPHYR_BASE}/include/zephyr/sys/atomic_c.h
|
||||
)
|
||||
|
||||
zephyr_syscall_header_ifdef(
|
||||
CONFIG_MMU
|
||||
${ZEPHYR_BASE}/include/zephyr/sys/mem_manage.h
|
||||
)
|
||||
|
||||
# If a pre-built static library containing kernel code exists in
|
||||
# this directory, libkernel.a, link it with the application code
|
||||
# instead of building from source.
|
||||
|
|
|
|||
Loading…
Reference in a new issue