Skip to content

Commit

Permalink
examples: make examples/ optional
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
xypron authored and trini committed Oct 8, 2020
1 parent d9b9c91 commit fc6ef71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+

ifndef CONFIG_SANDBOX
ifdef CONFIG_EXAMPLES

ifdef FTRACE
subdir-ccflags-y += -finstrument-functions -DFTRACE
Expand Down

0 comments on commit fc6ef71

Please sign in to comment.