mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH RFC 1/2] images: allow suppressing missing firmware stderr output
@ 2026-01-12 14:17 Ahmad Fatoum
  2026-01-12 14:17 ` [PATCH RFC 2/2] MAKEALL: add a new develop mode option Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-01-12 14:17 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

There is a Kconfig option to turn missing firmware to an error, but
there is no way to suppress the warning that is printed in any case.

Suppressing the warning is useful however when reproducing an issue with
a multi_defconfig, so allow changing it to output to stdout by means of
an environment variable.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 images/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/images/Makefile b/images/Makefile
index ebbf57b46355..96f66b0a8e70 100644
--- a/images/Makefile
+++ b/images/Makefile
@@ -254,7 +254,8 @@ images: $(image-y-path) $(flash-link) $(flash-list) $(symlink-y-path) FORCE
 	@echo "images built:"
 	@for i in $(image-y); do \
 	  if [ -s $(obj)/$$i ]; then echo $$i; \
-	  else >&2 echo "** $$i skipped due to missing firmware **"; \
+	  else $(if $(NO_MISSING_FIRMWARE_WARNING),,>&2) \
+	  	echo "** $$i skipped due to missing firmware **"; \
 	  $(if $(CONFIG_MISSING_FIRMWARE_ERROR), >&2 sed 's/^/\t/' <$(obj)/$${i}.missing-firmware; missing=1;) \
 	  fi; done; if [ -n "$$missing" ]; then \
 	    echo >&2 "Firmware missing in CONFIG_MISSING_FIRMWARE_ERROR=y build"; exit 1; fi
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-12 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-12 14:17 [PATCH RFC 1/2] images: allow suppressing missing firmware stderr output Ahmad Fatoum
2026-01-12 14:17 ` [PATCH RFC 2/2] MAKEALL: add a new develop mode option Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox