Skip to content

Commit b53a792

Browse files
lyakhnashif
authored andcommitted
llext: enable tristate Kconfig options
kconfiglib.py has a hard dependency on CONFIG_MODULES to support 'm' values for tristate Kconfig options. It's a logical companion for but can also be used with other configurations. Signed-off-by: Guennadi Liakhovetski <[email protected]>
1 parent 7d7f7aa commit b53a792

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

subsys/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,14 @@ source "subsys/usb/usb_c/Kconfig"
5353
source "subsys/zbus/Kconfig"
5454
# zephyr-keep-sorted-stop
5555

56+
config MODULES
57+
bool "Make tristate Kconfig options and an 'm' selection available"
58+
help
59+
Zephyr supports dynamically loadable code, e.g. using llext. Code,
60+
that can either be built as a part of the system image or as a
61+
loadable extension, can use tristate Kconfig options. For this to work
62+
the CONFIG_MODULES option must be enabled by the project. Enabling
63+
this option alone doesn't change the build on its own, it only allows
64+
using 'm' for tristate Kconfig options.
65+
5666
endmenu

0 commit comments

Comments
 (0)