File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Copyright (c) 2024 Intel Corporation.
3
+
4
+ mainmenu "LLEXT functionality test"
5
+
6
+ source "Kconfig.zephyr"
7
+
8
+ config LLEXT_TEST_HELLO
9
+ tristate "llext hello test"
10
+ default n
11
+ help
12
+ Set to "m" to test hello-world loading
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.20.0)
5
5
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
6
6
project (hello_world )
7
7
8
+ if (NOT CONFIG_MODULES OR CONFIG_LLEXT_TEST_HELLO STREQUAL "m" )
9
+
8
10
# TODO check which architecture is being used
9
11
if (CONFIG_ARM )
10
12
set (CMAKE_C_FLAGS "-mlong-calls" "-mthumb" )
@@ -34,3 +36,5 @@ endif()
34
36
set (HELLO_WORLD_LLEXT ${PROJECT_BINARY_DIR} /hello_world.llext PARENT_SCOPE )
35
37
36
38
add_custom_target (hello_world DEPENDS ${PROJECT_BINARY_DIR} /hello_world.llext )
39
+
40
+ endif ()
Original file line number Diff line number Diff line change 6
6
arch_allow : arm
7
7
extra_configs :
8
8
- CONFIG_ARM_MPU=n
9
+ - CONFIG_MODULES=y
10
+ - CONFIG_LLEXT_TEST_HELLO=m
9
11
# Broken platforms
10
12
platform_exclude :
11
13
- nuvoton_pfm_m487 # See #63167
12
14
llext.simple.xtensa :
13
15
arch_allow : xtensa
14
16
extra_configs :
15
17
- CONFIG_LLEXT_STORAGE_WRITABLE=y
18
+ - CONFIG_MODULES=y
19
+ - CONFIG_LLEXT_TEST_HELLO=m
16
20
# Broken platforms
17
21
platform_exclude :
18
22
- qemu_xtensa_mmu # ELF sections are read-only, and without peek() .text copy isn't executable
You can’t perform that action at this time.
0 commit comments