tools: Do not generate logo when cross-building
PATCH v2 1/1 tools: Do not generate logo when cross-building
From: Jan Kiszka <[email protected]>
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.
---
Changes in v2:
- improve commit message
tools/Makefile | 2 ++ 1 file changed, 2 insertions(+)
tools/Makefile +2 -0
@@ -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) > $@
Signature · 1 line
2.43.0
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
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 caseCONFIG_VIDEO_LOGOis enabled.Signed-off-by Jan Kiszka <[email protected]>---
Changes in v2:
- improve commit messagetools/Makefile | 2 ++ 1 file changed, 2 insertions(+)tools/Makefile +0
-0
tools/Makefile HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \ · line 341
Quoted 9 lines
tools/Makefile +2
-0@@ -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) > $@
Any comments on this build fix? Or should we somehow get the logo generation out of the tools build?
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Quoted 29 lines · Jan Kiszka
Quoted 28 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
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 caseCONFIG_VIDEO_LOGOis enabled.Signed-off-by Jan Kiszka <[email protected]>---
Changes in v2:
- improve commit messagetools/Makefile | 2 ++ 1 file changed, 2 insertions(+)tools/Makefile +2
-0@@ -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
Quoted 5 lines
tools/Makefile HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \ · line 341
Quoted 2 lines
tools/Makefile +0
-0$(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP) $(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@Any comments on this build fix? Or should we somehow get the logo generation out of the tools build?
I guess, why is this being built for the target, and not for the host? Generation of the logo image on the device doesn't seem useful unless we're actually building U-Boot, and in that case we'd be building for the host...
Signature · 1 line
Tom
Quoted 36 lines · Tom Rini
Quoted 29 lines · Jan Kiszka
Quoted 28 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
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 caseCONFIG_VIDEO_LOGOis enabled.Signed-off-by Jan Kiszka <[email protected]>---
Changes in v2:
- improve commit messagetools/Makefile | 2 ++ 1 file changed, 2 insertions(+)tools/Makefile +2
-0@@ -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) +endifQuoted 5 lines
tools/Makefile HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \ · line 341
Quoted 2 lines
tools/Makefile +0
-0$(LOGO_H): $(obj)/bmp_logo $(LOGO_BMP) $(obj)/bmp_logo --gen-info $(LOGO_BMP) > $@Any comments on this build fix? Or should we somehow get the logo generation out of the tools build?
Quoted 4 lines
I guess, why is this being built for the target, and not for the host? Generation of the logo image on the device doesn't seem useful unless we're actually building U-Boot, and in that case we'd be building for the host...
It is currently being built for both. But if you cross-build the tools, you are way more interested in things like dumpimage or mkimage than bmp_logo because you want to ship the former on the device.
Jan
Signature · 2 lines
Siemens AG, Foundational Technologies Linux Expert Center
Tom Rini
Reviewed-byQuoted 37 lines · Jan Kiszka
Quoted 36 lines · Tom Rini
Quoted 34 lines · Jan Kiszka
Quoted 21 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
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 caseCONFIG_VIDEO_LOGOis enabled.Signed-off-by Jan Kiszka <[email protected]>---
Changes in v2:
- improve commit messagetools/Makefile | 2 ++ 1 file changed, 2 insertions(+)tools/Makefile +0
-0tools/Makefile HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \ · line 341
Quoted 9 lines
tools/Makefile +2
-0@@ -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) > $@Any comments on this build fix? Or should we somehow get the logo generation out of the tools build?
Quoted 8 lines
Quoted 4 lines
I guess, why is this being built for the target, and not for the host? Generation of the logo image on the device doesn't seem useful unless we're actually building U-Boot, and in that case we'd be building for the host...
It is currently being built for both. But if you cross-build the tools, you are way more interested in things like dumpimage or mkimage than
bmp_logobecause you want to ship the former on the device.
Ah. Sounds like maybe long term we should clean up the Makefile here to have a better split between build-time tools and external tools.
And I'll pull this to -next soon'ish. Thanks!
Signature · 1 line
Tom
Quoted 6 lines · Jan Kiszka
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 caseCONFIG_VIDEO_LOGOis enabled.
Applied to u-boot/next, thanks!
[1/1] tools: Do not generate logo when cross-building
commit: 371a76e845504c9ba7ca216b6edfb4ae4ec14e56
Signature · 1 line
Tom