Skip to contentSkip to conversation

Makefile: Fix generation of flash.bin u-boot.itb with binman

PATCH New Marek Vasut 5 participants 8 messages Feb 25, 2021 – May 2, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
---
 Makefile | 6 ++++++
 1 file changed, 6 insertions(+)
Makefile +6 -0
index 079881b62ab..a0456dd5859 100644
@@ -1542,10 +1542,16 @@ u-boot.cnt: u-boot.bin FORCE
 flash.bin: spl/u-boot-spl.bin u-boot.cnt FORCE
 	$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
 else
+ifeq ($(CONFIG_BINMAN),y)
+flash.bin: spl/u-boot-spl.bin $(INPUTS-y) FORCE
+	$(call if_changed,binman)
+	$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
+else
 flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
 	$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
 endif
 endif
+endif
 
 u-boot-with-spl.imx u-boot-with-nand-spl.imx: SPL u-boot.bin FORCE
 	$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
Signature · 1 line
2.30.0
#1 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Quoted 7 lines · Marek Vasut

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>

This bugfix is still missing from upstream.

#2 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Quoted 11 lines · Marek Vasut
Quoted 7 lines · Marek Vasut

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>

This bugfix is still missing from upstream.

+ Simon

#3 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Hi,

Quoted 8 lines · Bin Meng
Quoted 6 lines · Marek Vasut
Quoted 4 lines · Marek Vasut

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>

This bugfix is still missing from upstream.

It seems to be missing a Fixes tag?

I can't really comment on this particular patch as it is up to MX8 what is done here.

But a much better solution is to move this generation stuff to binman, instead of all the arch-specific Makefile rules.

Regards,
Simon

#4 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Quoted 1 line · Simon Glass

Hi,

Hello Simon,

Quoted 9 lines · Bin Meng
Quoted 8 lines · Marek Vasut
Quoted 6 lines · Marek Vasut
Quoted 4 lines

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>

This bugfix is still missing from upstream.

It seems to be missing a Fixes tag?

There are way too many commits related to this to identify specific one.

Quoted 2 lines

I can't really comment on this particular patch as it is up to MX8 what is done here.

In that case, deciding on this bugfix is up to the maintainer, Stefano.

Quoted 2 lines

But a much better solution is to move this generation stuff to binman, instead of all the arch-specific Makefile rules.

Feel free to submit subsequent patch, but this bug should be fixed first, improvements can go in later.

#5 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Hi Marek,

Quoted 19 lines · Marek Vasut
Quoted 1 line · Simon Glass

Hi,

Hello Simon,

Quoted 13 lines · Bin Meng
Quoted 12 lines · Marek Vasut
Quoted 10 lines · Marek Vasut
Quoted 7 lines

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

This bugfix is still missing from upstream.

It seems to be missing a Fixes tag?

There are way too many commits related to this to identify specific one.

Sure, I was suggesting why it had not been picked up for the release.

Quoted 11 lines
Quoted 3 lines

I can't really comment on this particular patch as it is up to MX8 what is done here.

In that case, deciding on this bugfix is up to the maintainer, Stefano.

Quoted 2 lines

But a much better solution is to move this generation stuff to binman, instead of all the arch-specific Makefile rules.

Feel free to submit subsequent patch, but this bug should be fixed first, improvements can go in later.

Yes indeed. It looks like the maintainers are on this thread so they should be able to pick it up.

Regards,
Simon

#6 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

Hi Marek,

Quoted 36 lines · Simon Glass

Hi Marek,

Quoted 19 lines · Marek Vasut
Quoted 1 line · Simon Glass

Hi,

Hello Simon,

Quoted 13 lines · Bin Meng
Quoted 12 lines · Marek Vasut
Quoted 10 lines · Marek Vasut
Quoted 7 lines

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

This bugfix is still missing from upstream.

It seems to be missing a Fixes tag?

There are way too many commits related to this to identify specific one.

Sure, I was suggesting why it had not been picked up for the release.

Quoted 6 lines
Quoted 3 lines

I can't really comment on this particular patch as it is up to MX8 what is done here.

In that case, deciding on this bugfix is up to the maintainer, Stefano.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

But a much better solution is to move this generation stuff to binman, instead of all the arch-specific Makefile rules.

Feel free to submit subsequent patch, but this bug should be fixed first, improvements can go in later.

Yes indeed. It looks like the maintainers are on this thread so they should be able to pick it up.

Not sure if this was related to i.MX because it changes the main Makefile, but I admit I do not remember anymore if I have already merged and I found an issue or I have not seen and I ignored. I pick it up and I run CI.

Regards,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#7 lore raw

PATCH 1/1 Makefile: Fix generation of flash.bin u-boot.itb with binman

In reply to Marek Vasut
Quoted 6 lines

In case binman is enabled, the u-boot.itb is generated using this tool and there is no direct u-boot.itb target, but instead the binman tool must be invoked. Add support for this case.

Cc Peng Fan <[email protected]>
Cc Stefano Babic <[email protected]>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================