Skip to content

Commit

Permalink
lib: syscalls: use zephyr_syscall_header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dcpleung authored and nashif committed Jun 17, 2023
1 parent e734911 commit 1d4d718
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/libc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_syscall_header(
${ZEPHYR_BASE}/include/zephyr/sys/libc-hooks.h
)

add_subdirectory_ifdef(CONFIG_ARCMWDT_LIBC arcmwdt)
add_subdirectory_ifdef(CONFIG_ARMCLANG_STD_LIBC armstdc)
add_subdirectory_ifdef(CONFIG_MINIMAL_LIBC minimal)
Expand Down
4 changes: 4 additions & 0 deletions lib/os/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_syscall_header(
${ZEPHYR_BASE}/include/zephyr/sys/mutex.h
)

zephyr_sources_ifdef(CONFIG_BASE64 base64.c)

zephyr_sources(
Expand Down
3 changes: 3 additions & 0 deletions lib/posix/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_syscall_header(
${ZEPHYR_BASE}/include/zephyr/posix/time.h
)

zephyr_interface_library_named(posix_subsys)

Expand Down

0 comments on commit 1d4d718

Please sign in to comment.