tests: subsys: llext: intel_adsp build fixes

Adds board overlays for Intel ADSP platforms to use
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE instead of SHAREDLIB
as xt-clang cannot link shared libs for Xtensa, exports
symbols used by Intel ADSP with Xtensa toolchain, and
adds XTENSA MPU / MMU to "no memory protection" config file.

Signed-off-by: Lauren Murphy <lauren.murphy@intel.com>
This commit is contained in:
Lauren Murphy
2025-12-09 10:09:23 -08:00
committed by Maureen Helm
parent b6f28127bd
commit d01a2bc5a5
10 changed files with 21 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include <zephyr/internal/syscall_handler.h>
#include <zephyr/drivers/timer/system_timer.h>
#include <zephyr/sys_clock.h>
#include <zephyr/llext/symbol.h>
static uint64_t curr_tick;
@@ -202,6 +203,7 @@ k_ticks_t z_timeout_remaining(const struct _timeout *timeout)
return ticks;
}
EXPORT_SYMBOL(z_timeout_remaining);
k_ticks_t z_timeout_expires(const struct _timeout *timeout)
{
@@ -216,6 +218,7 @@ k_ticks_t z_timeout_expires(const struct _timeout *timeout)
return ticks;
}
EXPORT_SYMBOL(z_timeout_expires);
int32_t z_get_next_timeout_expiry(void)
{

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -0,0 +1,2 @@
# xt-clang cannot link shared libs for xtensa
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y

View File

@@ -8,3 +8,5 @@ CONFIG_ARM_AARCH32_MMU=n
CONFIG_RISCV_PMP=n
CONFIG_ARC_MPU_ENABLE=n
CONFIG_X86_MMU=n
CONFIG_XTENSA_MMU=n
CONFIG_XTENSA_MPU=n