diff --git a/Kconfig b/Kconfig index bf30179db93..76cfa74dc8b 100644 --- a/Kconfig +++ b/Kconfig @@ -733,6 +733,8 @@ config LDR_CPU source "legacy_api/Kconfig" +source "examples/Kconfig" + endmenu # General setup source "boot/Kconfig" diff --git a/examples/Kconfig b/examples/Kconfig new file mode 100644 index 00000000000..62ae2ffab2c --- /dev/null +++ b/examples/Kconfig @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright 2017 Emmanuel Vadot + +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/. diff --git a/legacy_api/Kconfig b/legacy_api/Kconfig index 6dc96455ff0..7e5725a7202 100644 --- a/legacy_api/Kconfig +++ b/legacy_api/Kconfig @@ -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"