tools: Do not generate logo when cross-building

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@siemens.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Jan Kiszka
2025-08-23 17:21:09 +02:00
committed by Tom Rini
parent 7d921410ef
commit 371a76e845

View File

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