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>
This commit is contained in:
parent
d112549140
commit
030c1c8308
4 changed files with 31 additions and 10 deletions
|
@ -7,7 +7,7 @@ source "Kconfig.zephyr"
|
|||
|
||||
config HELLO_WORLD_MODE
|
||||
tristate "Include the hello_world function"
|
||||
default m
|
||||
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
|
||||
|
@ -16,3 +16,7 @@ config HELLO_WORLD_MODE
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue