Skip to contentSkip to conversation

Revert "config: tools only: add VIDEO to build bmp_logo"

PATCH In review Fabio Estevam 5 participants 13 messages Jan 19, 2023 – Jan 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "config: tools only: add VIDEO to build bmp_logo"

This reverts commit 1cfba53ca46cade2dbf4e067afc8c19e72909a4b.

Since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo") the build of tools-only_defconfig fails:

| /bin/sh: line 1: tools/bmp_logo: No such file or directory

This has been noticed in OpenEmbedded and Debian [1].

Revert it for now.

[1] https://lists.denx.de/pipermail/u-boot/2023-January/504758.html

---
 configs/tools-only_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/tools-only_defconfig +0 -1
index 2197063112..fb75235e3d 100644
@@ -29,7 +29,6 @@ CONFIG_DM_RTC=y
 CONFIG_SOUND=y
 CONFIG_SYSRESET=y
 CONFIG_TIMER=y
-CONFIG_VIDEO=y
 # CONFIG_VIRTIO_MMIO is not set
 # CONFIG_VIRTIO_PCI is not set
 # CONFIG_VIRTIO_SANDBOX is not set
Signature · 1 line
2.25.1
#1 lore raw
Quoted 11 lines · Fabio Estevam

This reverts commit 1cfba53ca46cade2dbf4e067afc8c19e72909a4b.

Since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo") the build of tools-only_defconfig fails:

| /bin/sh: line 1: tools/bmp_logo: No such file or directory

This has been noticed in OpenEmbedded and Debian [1].

Revert it for now.

So how do you propose to fix the issue I have which this fixes?

Quoted 22 lines

[1] https://lists.denx.de/pipermail/u-boot/2023-January/504758.html

---
 configs/tools-only_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/tools-only_defconfig +0 -2
index 2197063112..fb75235e3d 100644
@@ -29,7 +29,6 @@ CONFIG_DM_RTC=y
 CONFIG_SOUND=y
 CONFIG_SYSRESET=y
 CONFIG_TIMER=y
-CONFIG_VIDEO=y
 # CONFIG_VIRTIO_MMIO is not set
 # CONFIG_VIRTIO_PCI is not set
 # CONFIG_VIRTIO_SANDBOX is not set
--

2.25.1

#2 lore raw

Hi Peter,

Quoted 1 line · Peter Robinson

So how do you propose to fix the issue I have which this fixes?

Ok, we need some more information here:

- What is the exact problem you are trying to solve? How can we reproduce it?

- Is it a regression? What is the commit that caused the problem you are trying to solve?

#3 lore raw
Quoted 8 lines · Fabio Estevam

Hi Peter,

Quoted 1 line · Peter Robinson

So how do you propose to fix the issue I have which this fixes?

Ok, we need some more information here:

Did you read the original thread?

Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

#4 lore raw
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.
It lacks a Fixes tag too.

Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

What about this part?

Tom, Otavio? Any suggestions, please?

#5 lore raw
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

I don't remember, this was back in November.

Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

But does it actually build the bmp_logo tool? It builds fine for me too but that tool is no longer built.

Quoted 3 lines

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Where when I build it for Fedora it builds for me and I get the bmp_logo which we used to have pre 2023.01

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

What about this part?

I don't remember, see comment above.

#6 lore raw
Quoted 9 lines · Peter Robinson
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

Quoted 6 lines

I don't remember, this was back in November.

Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

They're quite helpful, in order to track when changes are fixing a problem that was introduced by some other commit.

Quoted 17 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

But does it actually build the bmp_logo tool? It builds fine for me too but that tool is no longer built.

Quoted 3 lines

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Where when I build it for Fedora it builds for me and I get the bmp_logo which we used to have pre 2023.01

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

What about this part?

I don't remember, see comment above.

The unanswered question is, why does Fedora ship the bmp_logo tool? I'm fairly certain it's one of the host tools that's not useful outside of the build and so shouldn't be packaged.

Signature · 1 line
Tom
#7 lore raw
Quoted 41 lines · Tom Rini
Quoted 9 lines · Peter Robinson
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

Quoted 6 lines

I don't remember, this was back in November.

Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

They're quite helpful, in order to track when changes are fixing a problem that was introduced by some other commit.

Quoted 20 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

But does it actually build the bmp_logo tool? It builds fine for me too but that tool is no longer built.

Quoted 3 lines

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Where when I build it for Fedora it builds for me and I get the bmp_logo which we used to have pre 2023.01

Quoted 3 lines
Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

What about this part?

I don't remember, see comment above.

The unanswered question is, why does Fedora ship the bmp_logo tool? I'm fairly certain it's one of the host tools that's not useful outside of the build and so shouldn't be packaged.

It pre dates my time as maintainer so I actually don't know other than "we've basically shipped it for ever and it's impossible to tell if it has users", we could probably drop it and wait to see if I get bug reports.

#8 lore raw
Quoted 46 lines · Peter Robinson
Quoted 45 lines · Tom Rini
Quoted 9 lines · Peter Robinson
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

Quoted 6 lines

I don't remember, this was back in November.

Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

They're quite helpful, in order to track when changes are fixing a problem that was introduced by some other commit.

Quoted 23 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

But does it actually build the bmp_logo tool? It builds fine for me too but that tool is no longer built.

Quoted 3 lines

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Where when I build it for Fedora it builds for me and I get the bmp_logo which we used to have pre 2023.01

Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

What about this part?

I don't remember, see comment above.

Quoted 8 lines
Quoted 3 lines

The unanswered question is, why does Fedora ship the bmp_logo tool? I'm fairly certain it's one of the host tools that's not useful outside of the build and so shouldn't be packaged.

It pre dates my time as maintainer so I actually don't know other than "we've basically shipped it for ever and it's impossible to tell if it has users", we could probably drop it and wait to see if I get bug reports.

OK, thanks, we'll revert this and see what the fall out, if any, ends up being.

Signature · 1 line
Tom
#9 lore raw
Quoted 51 lines · Tom Rini
Quoted 50 lines · Peter Robinson
Quoted 48 lines · Tom Rini
Quoted 9 lines · Peter Robinson
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

Quoted 6 lines

I don't remember, this was back in November.

Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

They're quite helpful, in order to track when changes are fixing a problem that was introduced by some other commit.

Quoted 17 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

- What is the exact problem you are trying to solve? How can we reproduce it?

Building that tool with the tools only option.

When I try to build U-Boot 2023.01 u-boot-tools-native in OpenEmbedded it works fine.

But does it actually build the bmp_logo tool? It builds fine for me too but that tool is no longer built.

Quoted 3 lines

It fails when trying to build it for the target since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo").

Where when I build it for Fedora it builds for me and I get the bmp_logo which we used to have pre 2023.01

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

- Is it a regression? What is the commit that caused the problem you are trying to solve?

What about this part?

I don't remember, see comment above.

The unanswered question is, why does Fedora ship the bmp_logo tool? I'm fairly certain it's one of the host tools that's not useful outside of the build and so shouldn't be packaged.

Quoted 8 lines
Quoted 4 lines

It pre dates my time as maintainer so I actually don't know other than "we've basically shipped it for ever and it's impossible to tell if it has users", we could probably drop it and wait to see if I get bug reports.

OK, thanks, we'll revert this and see what the fall out, if any, ends up being.

So we also hit this problem, not with the target version of u-boot-tools (which we don't build), but the nativesdk one, with the same symptoms. We certainly don't use or need the bmp_logo tool, so we're happy with the revert and will just carry that on top of v2023.01 for now, but since I spent some time on this I thought I might as well float the fix I was about to send, before I noticed the revert:

tools/Makefile +2 -0
index edfa40903d..5c8175cf2a 100644
@@ -281,8 +281,10 @@ hostprogs-y += printinitialenv
 # Generated LCD/video logo
 LOGO_H = $(objtree)/include/bmp_logo.h
 LOGO_DATA_H = $(objtree)/include/bmp_logo_data.h
+ifeq ($(CROSS_BUILD_TOOLS),)
 LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_H)
 LOGO-$(CONFIG_VIDEO_LOGO) += $(LOGO_DATA_H)
+endif
 
 # Generic logo
 ifeq ($(LOGO_BMP),)

This relies on the Yocto recipe doing (essentially)

make tools-only_defconfig
make cross_tools NO_SDL=1

so the top Makefile sets CROSS_BUILD_TOOLS, and thus we avoid adding the targets that need to invoke the bmp_logo tool (which obviously doesn't
work when built for target, nor when built for nativesdk where the ELF
file ends up with "interpreter /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2"), while still allowing the bmp_logo tool itself to be built.

Rasmus

#10 lore raw
Quoted 16 lines · Rasmus Villemoes
Quoted 15 lines · Tom Rini
Quoted 14 lines · Peter Robinson
Quoted 13 lines · Tom Rini
Quoted 11 lines · Peter Robinson
Quoted 7 lines · Fabio Estevam
Quoted 1 line · Peter Robinson

Did you read the original thread?

I only read your commit log and it is not clear if it is a regression and which commit caused the problem.

I don't remember, this was back in November.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

It lacks a Fixes tag too.

Which are mostly pointless in U-Boot as it's not like the kernel where there's stable release cycles.

They're quite helpful, in order to track when changes are fixing a problem that was introduced by some other commit.

So I also got curious about that part, because when I build tools-only_defconfig with older U-Boot releases I don't get a bmp_logo tool built.

I think I figured that out (but only after it's been revealed that this was about Fedora's packaging of u-boot-tools). Fedora seems to do

%make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" tools-only_defconfig O=builds/

%make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" tools-all O=builds/

so unlike the Yocto case, the build target is tools-all and not cross_tools. Hence the top Makefile sets HOST_TOOLS_ALL=y, which in tools/Makefile then hits

ifneq ($(HOST_TOOLS_ALL),)
CONFIG_ARCH_KIRKWOOD = y
...
endif

and that block used to, until 1dc6517649f2, contain

CONFIG_LCD_LOGO = y

with the corresponding

hostprogs-$(CONFIG_LCD_LOGO) += bmp_logo

further down.

IOW, it wasn't really tools-only_defconfig per se that used to cause bmp_logo to get built, it was the tools-all target.

Rasmus

#11 lore raw

Hi Rasmus,

Quoted 25 lines · Rasmus Villemoes

So I also got curious about that part, because when I build tools-only_defconfig with older U-Boot releases I don't get a bmp_logo tool built.

I think I figured that out (but only after it's been revealed that this was about Fedora's packaging of u-boot-tools). Fedora seems to do

%make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" tools-only_defconfig O=builds/

%make_build HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" tools-all O=builds/

so unlike the Yocto case, the build target is tools-all and not cross_tools. Hence the top Makefile sets HOST_TOOLS_ALL=y, which in tools/Makefile then hits

ifneq ($(HOST_TOOLS_ALL),)
CONFIG_ARCH_KIRKWOOD = y
...
endif

and that block used to, until 1dc6517649f2, contain

CONFIG_LCD_LOGO = y

Quoted 8 lines

with the corresponding

hostprogs-$(CONFIG_LCD_LOGO) += bmp_logo

further down.

IOW, it wasn't really tools-only_defconfig per se that used to cause bmp_logo to get built, it was the tools-all target.

Thanks for the in-depth investigation, appreciated it.

#12 lore raw
In reply to Fabio Estevam
Quoted 7 lines · Fabio Estevam

This reverts commit 1cfba53ca46cade2dbf4e067afc8c19e72909a4b.

Since commit 1cfba53ca46c ("config: tools only: add VIDEO to build bmp_logo") the build of tools-only_defconfig fails:

| /bin/sh: line 1: tools/bmp_logo: No such file or directory

Quoted 7 lines

This has been noticed in OpenEmbedded and Debian [1].

Revert it for now.

[1] https://lists.denx.de/pipermail/u-boot/2023-January/504758.html

Applied to u-boot/master, thanks!

Signature · 1 line
Tom