[Concept,02/17] ulib: Build the static test binary by default

Message ID 20260216013511.4079770-3-sjg@u-boot.org
State New
Headers
Series ulib: Add multi-arch demo and EFI app support |

Commit Message

Simon Glass Feb. 16, 2026, 1:34 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

The ulib_test_static binary has a build rule in the Makefile but is not
added to the INPUTS targets, so it is never built automatically. The
test_ulib_static pytest then fails because the binary does not exist.

Add test/ulib/ulib_test_static to the INPUTS line for sandbox builds,
since the binary uses HOSTCC and can only run on the host.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

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

Patch

diff --git a/Makefile b/Makefile
index f1fdace661d..be1814e009c 100644
--- a/Makefile
+++ b/Makefile
@@ -1060,6 +1060,9 @@  ifneq ($(cc-name),clang)
 ifeq ($(NO_LIBS),)
 INPUTS-$(CONFIG_ULIB_SHARED_LIB) += libu-boot.so test/ulib/ulib_test
 INPUTS-$(CONFIG_ULIB) += libu-boot.a
+ifdef CONFIG_SANDBOX
+INPUTS-$(CONFIG_ULIB) += test/ulib/ulib_test_static
+endif
 ifdef CONFIG_EXAMPLES
 ifdef CONFIG_SANDBOX
 INPUTS-$(CONFIG_ULIB) += examples_ulib examples_rust