mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
8ddaf94358
commit
bd9059c477
6
Makefile
6
Makefile
|
@ -1493,10 +1493,16 @@ u-boot.cnt: u-boot.bin FORCE
|
||||||
flash.bin: spl/u-boot-spl.bin u-boot.cnt FORCE
|
flash.bin: spl/u-boot-spl.bin u-boot.cnt FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||||
else
|
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
|
flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
u-boot.uim: u-boot.bin FORCE
|
u-boot.uim: u-boot.bin FORCE
|
||||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user