2023-09-27 21:10:10 +08:00
|
|
|
if(CONFIG_LLEXT)
|
2024-08-22 21:52:29 +08:00
|
|
|
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/llext/llext.h)
|
|
|
|
|
2023-09-27 21:10:10 +08:00
|
|
|
zephyr_library()
|
2024-06-04 16:32:36 +08:00
|
|
|
|
2024-05-27 21:14:46 +08:00
|
|
|
# For strnlen()
|
|
|
|
zephyr_library_compile_definitions(-D_POSIX_C_SOURCE=200809L)
|
2024-06-04 16:32:36 +08:00
|
|
|
|
|
|
|
zephyr_library_sources(
|
|
|
|
llext.c
|
|
|
|
llext_mem.c
|
2024-06-05 17:02:46 +08:00
|
|
|
llext_load.c
|
|
|
|
llext_link.c
|
2024-06-04 16:32:36 +08:00
|
|
|
llext_export.c
|
2024-08-22 21:52:29 +08:00
|
|
|
llext_handlers.c
|
2024-06-04 16:32:36 +08:00
|
|
|
buf_loader.c
|
2024-08-21 23:20:57 +08:00
|
|
|
fs_loader.c
|
2024-06-04 16:32:36 +08:00
|
|
|
)
|
2023-09-27 21:10:10 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_LLEXT_SHELL shell.c)
|
2024-09-19 15:35:49 +08:00
|
|
|
|
|
|
|
if(CONFIG_RISCV AND CONFIG_USERSPACE)
|
|
|
|
message(WARNING "Running LLEXT extensions from user-space threads on RISC-V is not supported!")
|
|
|
|
endif()
|
2023-09-27 21:10:10 +08:00
|
|
|
endif()
|