
From: Simon Glass <sjg@chromium.org> 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> --- examples/Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/Kconfig b/examples/Kconfig index 62ae2ffab2c..4d5a2a9c8dd 100644 --- a/examples/Kconfig +++ b/examples/Kconfig @@ -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. diff --git a/examples/Makefile b/examples/Makefile index bf51f1a5018..50bef4e6157 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -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 -- 2.43.0