examples: make examples/ optional
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 23 Sep 2020 17:09:51 +0000 (19:09 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitfc6ef71a66bf1d085fd802331462eb33882597fd
tree9fab4ce8621ee7a6b3a0f2ad34976c3f360c5815
parentd9b9c91b5d0ee1044cc638f7ea809a3836cf168e
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>
Kconfig
examples/Makefile