[Concept,03/10] Kconfig: Split the EXAMPLES option into its own file
Commit Message
From: Simon Glass <sjg@chromium.org>
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>
---
Kconfig | 2 ++
examples/Kconfig | 11 +++++++++++
legacy_api/Kconfig | 8 --------
3 files changed, 13 insertions(+), 8 deletions(-)
create mode 100644 examples/Kconfig
@@ -733,6 +733,8 @@ config LDR_CPU
source "legacy_api/Kconfig"
+source "examples/Kconfig"
+
endmenu # General setup
source "boot/Kconfig"
new file mode 100644
@@ -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/.
@@ -15,14 +15,6 @@ config SYS_MMC_MAX_DEVICE
int "Maximum number of MMC devices exposed via the legacy API"
default 1
-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/.
-
config STANDALONE_LOAD_ADDR
depends on EXAMPLES
hex "Address in memory to link standalone applications to"