ulib: Allow building of the libraries to be disabled

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

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-04 11:33:15 -06:00
parent ec3f3521e5
commit fa9a519562

View File

@@ -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)