[PATCH v2] tools: Do not generate logo when cross-building
Jan Kiszka
jan.kiszka at siemens.com
Sat Aug 23 17:21:09 CEST 2025
From: Jan Kiszka <jan.kiszka at siemens.com>
This cannot work (unless qemu-user is registered in binfmt_misc) as the
tools will be for a different architecture.
Fixes "make cross_tools" in case CONFIG_VIDEO_LOGO is enabled.
Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
Changes in v2:
- improve commit message
tools/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/Makefile b/tools/Makefile
index 7eb17f92116..ae6a3052646 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -333,7 +333,9 @@ HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \
-D__KERNEL_STRICT_NAMES \
-D_GNU_SOURCE
+ifeq ($(CROSS_BUILD_TOOLS),)
__build: $(LOGO-y)
+endif
$(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP)
$(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@
--
2.43.0
More information about the U-Boot
mailing list