zephyr/samples/subsys/llext/modules/Kconfig
Luca Burelli 030c1c8308 samples/llext/modules: build hello_world as built-in by default
This commit changes the default value of CONFIG_HELLO_WORLD_MODE to 'y'
so that the hello_world function is compiled as a built-in part of the
Zephyr image by default. This is the simplest possible configuration,
that works for all architectures.

To build hello_world as an llext module, the user must either follow the
commands in the documentation or set CONFIG_HELLO_WORLD_MODE=m in the
project file along with additional architecture-specific settings that
may be required for proper LLEXT support on the target.
Leave a note in the prj.conf and sample.yaml files to remind the user.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
2024-08-30 11:43:29 -04:00

22 lines
738 B
Text

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Intel Corporation.
mainmenu "LLEXT functionality test"
source "Kconfig.zephyr"
config HELLO_WORLD_MODE
tristate "Include the hello_world function"
default y
help
This enables building the hello_world function, implemented in
hello_world_ext.c, either as an llext module or as a built-in part of
Zephyr.
If you select 'm', the hello_world function will be built as an llext
"module". If you select 'y', the hello_world function will be directly
linked in the Zephyr image.
Note that additional architecture-specific configuration may be
required if you select 'm'. Please review this sample's documentation
and sample.yaml for more information.