summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2020-09-23 19:09:51 +0200
committerTom Rini <[email protected]>2020-10-08 11:42:36 -0400
commitfc6ef71a66bf1d085fd802331462eb33882597fd (patch)
tree9fab4ce8621ee7a6b3a0f2ad34976c3f360c5815 /examples
parentd9b9c91b5d0ee1044cc638f7ea809a3836cf168e (diff)
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]>
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index d440bc56553..bf518bd221b 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
-ifndef CONFIG_SANDBOX
+ifdef CONFIG_EXAMPLES
ifdef FTRACE
subdir-ccflags-y += -finstrument-functions -DFTRACE