examples: make examples/ optional
PATCH v2 1/1 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.
---
v2:
default=y on ARCH_QEMU only
--- Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
Kconfig +8 -0
@@ -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"
examples/Makefile +1 -1
@@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ -ifndef CONFIG_SANDBOX +ifdef CONFIG_EXAMPLES ifdef FTRACE subdir-ccflags-y += -finstrument-functions -DFTRACE
--
2.28.0
PATCH v2 1/1 examples: make examples/ optional
Quoted 10 lines · Heinrich Schuchardt
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 onARCH_QEMUto ensure that we compile the API as part of our continuous integration.Cc Matthias Brugger <[email protected]>Signed-off-by Heinrich Schuchardt <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200924/5b09b49e/attachment.sig>
PATCH v2 1/1 examples: make examples/ optional
In reply to Heinrich SchuchardtQuoted 11 lines · Heinrich Schuchardt
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 onARCH_QEMUto ensure that we compile the API as part of our continuous integration.Cc Matthias Brugger <[email protected]>Signed-off-by Heinrich Schuchardt <[email protected]>
Quoted 7 lines
---
v2:
default=y onARCH_QEMUonly--- Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
PATCH v2 1/1 examples: make examples/ optional
In reply to Heinrich SchuchardtQuoted 10 lines · Heinrich Schuchardt
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 onARCH_QEMUto ensure that we compile the API as part of our continuous integration.Cc Matthias Brugger <[email protected]>Signed-off-by Heinrich Schuchardt <[email protected]>
Quoted 42 lines
---
v2:
default=y onARCH_QEMUonly--- Kconfig | 8 ++++++++ examples/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)Kconfig +8
-0@@ -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"examples/Makefile +1
-2@@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0+ -ifndef CONFIG_SANDBOX +ifdef CONFIG_EXAMPLES ifdef FTRACE subdir-ccflags-y += -finstrument-functions -DFTRACE --2.28.0
PATCH v2 1/1 examples: make examples/ optional
In reply to Heinrich SchuchardtQuoted 8 lines · Heinrich Schuchardt
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 onARCH_QEMUto ensure that we compile the API as part of our continuous integration.
Quoted 5 lines
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]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201009/58a9c5b2/attachment.sig>