Skip to content

Commit 3082b9c

Browse files
awojasinskicarlescufi
authored andcommitted
llext: Add aarch64 to LLEXT tests
Include `qemu_cortex_a53` (ARMv8-A ISA) target in intergation platforms for LLEXT subsys tests. Signed-off-by: Adam Wojasinski <[email protected]>
1 parent 2e0aaec commit 3082b9c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

tests/subsys/llext/simple/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(CONFIG_ARM)
2323
endif()
2424
endif()
2525

26-
if (CONFIG_LLEXT_TYPE_ELF_RELOCATABLE AND CONFIG_XTENSA)
26+
if (CONFIG_LLEXT_TYPE_ELF_RELOCATABLE AND NOT CONFIG_ARM)
2727
list(APPEND ext_names pre_located)
2828
endif()
2929

@@ -58,7 +58,7 @@ if(NOT CONFIG_LLEXT_TYPE_ELF_OBJECT)
5858
)
5959
endif()
6060

61-
if (CONFIG_LLEXT_TYPE_ELF_RELOCATABLE AND CONFIG_XTENSA)
61+
if (CONFIG_LLEXT_TYPE_ELF_RELOCATABLE AND NOT CONFIG_ARM)
6262
# Manually fix the pre_located extension's text address at a multiple of 4
6363
get_target_property(pre_located_target pre_located_ext lib_target)
6464
get_target_property(pre_located_file pre_located_ext pkg_input)

tests/subsys/llext/simple/testcase.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ common:
2020
- qemu_cortex_r5 # ARM Cortex-R5 (ARMv7-R ISA)
2121
- mps2/an385 # ARM Cortex-M3 (ARMv7-M ISA)
2222
- mps2/an521/cpu0 # ARM Cortex-M33 (ARMv8-M ISA)
23+
extra_configs:
24+
- arch:arm64:CONFIG_LLEXT_HEAP_SIZE=128
2325

2426
tests:
2527
# While there is in practice no value in compiling subsys/llext/*.c
@@ -52,6 +54,13 @@ tests:
5254
- arch:arm:CONFIG_ARM_MPU=n
5355
- arch:arm:CONFIG_ARM_AARCH32_MMU=n
5456
- CONFIG_LLEXT_STORAGE_WRITABLE=n
57+
llext.simple.readonly_mmu:
58+
arch_allow: arm64 arm
59+
filter: CONFIG_ARM_MMU
60+
integration_platforms:
61+
- qemu_cortex_a53 # ARM Cortex-A53 (ARMv8-A ISA)
62+
extra_configs:
63+
- CONFIG_LLEXT_STORAGE_WRITABLE=n
5564
llext.simple.writable:
5665
arch_allow: arm xtensa
5766
integration_platforms:

0 commit comments

Comments
 (0)