Kconfig: Provide an option for the standalone directory

Rather than using CONFIG_EXAMPLES to control the inclusion of this
directory, create a separate option. This will allow examples to be
added which don't relate to the legacy API.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 12:20:28 -06:00
parent c0a60ee3e9
commit 227b4e25bf
2 changed files with 9 additions and 1 deletions

View File

@@ -9,3 +9,11 @@ config EXAMPLES
help
U-Boot provides an legacy API for standalone applications. Examples
are provided in directory examples/.
config EXAMPLES_STANDALONE
bool "Compile standalone examples"
depends on EXAMPLES
default y
help
Build the various examples in the standalone/directory for use with
the legacy API.

View File

@@ -6,6 +6,6 @@ ifdef FTRACE
subdir-ccflags-y += -finstrument-functions -DFTRACE
endif
subdir-y += standalone
subdir-$(EXAMPLES_STANDALONE) += standalone
subdir-$(CONFIG_LEGACY_API) += api
endif