summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-23 20:09:51 +0300
committerTom Rini <trini@konsulko.com>2020-10-08 18:42:36 +0300
commitfc6ef71a66bf1d085fd802331462eb33882597fd (patch)
tree9fab4ce8621ee7a6b3a0f2ad34976c3f360c5815 /Kconfig
parentd9b9c91b5d0ee1044cc638f7ea809a3836cf168e (diff)
downloadu-boot-fc6ef71a66bf1d085fd802331462eb33882597fd.tar.xz
examples: make examples/ optional
Most users don't need the standalone API examples. Distributions like SUSE do not supply libgcc for cross-compiling and we cannot do without on ARMv8 for building examples/. Make examples selectable via symbol CONFIG_EXAMPLES. It defaults to yes on ARCH_QEMU to ensure that we compile the API as part of our continuous integration. Cc: Matthias Brugger <mbrugger@suse.com> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 837b2f517a..1a132f90e4 100644
--- a/Kconfig
+++ b/Kconfig
@@ -422,6 +422,14 @@ config SYS_SRAM_SIZE
default 0x10000 if TARGET_TRICORDER
default 0x0
+config EXAMPLES
+ bool "Compile API examples"
+ depends on !SANDBOX
+ default y if ARCH_QEMU
+ help
+ U-Boot provides an API for standalone applications. Examples are
+ provided in directory examples/.
+
endmenu # General setup
menu "Boot images"