Kconfig: Split the EXAMPLES option into its own file

We want to build examples for things other than the legacy API. As a
first step, create a Kconfig file in examples/ and move CONFIG_EXAMPLES
into it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 12:14:45 -06:00
parent c3841693b3
commit c0a60ee3e9
3 changed files with 13 additions and 8 deletions

11
examples/Kconfig Normal file
View File

@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright 2017 Emmanuel Vadot <manu@bidouilliste.com>
config EXAMPLES
bool "Compile legacy API examples"
depends on !SANDBOX
default y if ARCH_QEMU_ARM
help
U-Boot provides an legacy API for standalone applications. Examples
are provided in directory examples/.