[Concept,14/15] ulib: Allow building of the libraries to be disabled

Message ID 20250905170132.182249-15-sjg@u-boot.org
State New
Headers
Series ulib: Provide test programs and documentation |

Commit Message

Simon Glass Sept. 5, 2025, 5:01 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Provide a NO_LIB option which disables building the libraries. This
saves a little time.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 Makefile | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/Makefile b/Makefile
index 3ece9a02b6c..2c4685d161c 100644
--- a/Makefile
+++ b/Makefile
@@ -1045,10 +1045,12 @@  INPUTS-$(CONFIG_X86) += u-boot-x86-start16.bin u-boot-x86-reset16.bin \
 
 ifdef CONFIG_CMDLINE
 ifneq ($(cc-name),clang)
+ifeq ($(NO_LIBS),)
 INPUTS-$(CONFIG_ULIB) += libu-boot.so test/ulib/ulib_test
 INPUTS-$(CONFIG_ULIB) += libu-boot.a test/ulib/ulib_test_static
 endif
 endif
+endif
 
 LDFLAGS_u-boot += $(LDFLAGS_FINAL)