Skip to content

Commit fc6ef71

Browse files
xyprontrini
authored andcommitted
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 <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]> Reviewed-by: Matthias Brugger <[email protected]>
1 parent d9b9c91 commit fc6ef71

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Kconfig

+8
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ config SYS_SRAM_SIZE
422422
default 0x10000 if TARGET_TRICORDER
423423
default 0x0
424424

425+
config EXAMPLES
426+
bool "Compile API examples"
427+
depends on !SANDBOX
428+
default y if ARCH_QEMU
429+
help
430+
U-Boot provides an API for standalone applications. Examples are
431+
provided in directory examples/.
432+
425433
endmenu # General setup
426434

427435
menu "Boot images"

examples/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0+
22

3-
ifndef CONFIG_SANDBOX
3+
ifdef CONFIG_EXAMPLES
44

55
ifdef FTRACE
66
subdir-ccflags-y += -finstrument-functions -DFTRACE

0 commit comments

Comments
 (0)