1if(CONFIG_LLEXT) 2 zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/llext/llext.h) 3 4 zephyr_library() 5 6 # For strnlen() 7 zephyr_library_compile_definitions(-D_POSIX_C_SOURCE=200809L) 8 9 zephyr_library_sources( 10 llext.c 11 llext_mem.c 12 llext_load.c 13 llext_link.c 14 llext_export.c 15 llext_handlers.c 16 buf_loader.c 17 fs_loader.c 18 ) 19 zephyr_library_sources_ifdef(CONFIG_LLEXT_SHELL shell.c) 20 21 if(CONFIG_RISCV AND CONFIG_USERSPACE) 22 message(WARNING "Running LLEXT extensions from user-space threads on RISC-V is not supported!") 23 endif() 24endif() 25