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:
committed by
Maureen Helm
parent
b6f28127bd
commit
d01a2bc5a5
@@ -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)
|
||||
{
|
||||
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace15_mtpm.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace15_mtpm.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace15_mtpm_sim.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace15_mtpm_sim.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace20_lnl.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace20_lnl.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace20_lnl_sim.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace20_lnl_sim.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace30_ptl.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace30_ptl.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace30_ptl_sim.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace30_ptl_sim.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace40_nvl.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace40_nvl.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
2
tests/subsys/llext/boards/intel_adsp_ace40_nvl_sim.conf
Normal file
2
tests/subsys/llext/boards/intel_adsp_ace40_nvl_sim.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
# xt-clang cannot link shared libs for xtensa
|
||||
CONFIG_LLEXT_TYPE_ELF_RELOCATABLE=y
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user