Makefile: Make flash.bin target available on i.MX9
Subsystems (4)
PATCH 1/1 Makefile: Make flash.bin target available on i.MX9
The current implementation of flash.bin generation with CONFIG_SPL_LOAD_IMX_CONTAINER=y requires build of u-boot.cnt which is i.MX8 specific. Reinstate the i.MX8 check to avoid this dependency for i.MX9 .
Fill in flash.bin target for i.MX9 into imx specific Makefile.
---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Alice Guo <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Frieder Schrempf <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
--- Makefile | 9 ++++++--- arch/arm/mach-imx/Makefile | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-)
Makefile +6 -3
@@ -1769,14 +1769,18 @@ tpl/u-boot-with-tpl.bin: tpl/u-boot-tpl.bin u-boot.bin FORCE SPL: spl/u-boot-spl.bin FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ -#ifeq ($(CONFIG_ARCH_IMX8M)$(CONFIG_ARCH_IMX8), y) -ifeq ($(CONFIG_SPL_LOAD_IMX_CONTAINER), y) +ifeq ($(CONFIG_SPL_LOAD_IMX_CONTAINER),y) +ifeq ($(CONFIG_ARCH_IMX8M)$(CONFIG_ARCH_IMX8),y) u-boot.cnt: u-boot.bin FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ flash.bin: spl/u-boot-spl.bin u-boot.cnt FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ else +flash.bin: spl/u-boot-spl.bin FORCE + $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ +endif +else ifeq ($(CONFIG_BINMAN),y) flash.bin: spl/u-boot-spl.bin $(INPUTS-y) FORCE $(call if_changed,binman)
@@ -1785,7 +1789,6 @@ flash.bin: spl/u-boot-spl.bin u-boot.itb FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@ endif endif -#endif u-boot.uim: u-boot.bin FORCE $(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
arch/arm/mach-imx/Makefile +3 -0
@@ -226,6 +226,9 @@ ifeq ($(CONFIG_ARCH_IMX9)$(CONFIG_ARCH_IMX8ULP), y) ifneq ($(and $(CONFIG_IMX95),$(CONFIG_BINMAN)),) SPL: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage) + +flash.bin: spl/u-boot-spl.bin FORCE + $(call if_changed,mkimage) else quiet_cmd_cpp_cfg_imx9_check = CHECK $@ cmd_cpp_cfg_imx9_check = $(CPP) $(cpp_flags) -D__ASSEMBLY__ -x c -o $@ $< && $(srctree)/tools/imx9_image.sh $@
Signature · 1 line
2.51.0
Fabio Estevam
reviewerQuoted 10 lines · Marek Vasut
The current implementation of flash.bin generation with
CONFIG_SPL_LOAD_IMX_CONTAINER=yrequires build of u-boot.cnt which is i.MX8 specific. Reinstate the i.MX8 check to avoid this dependency for i.MX9 .Fill in flash.bin target for i.MX9 into imx specific
Makefile.Fixes c3587197c0c9 ("Makefile: Make flash.bin target available for all platforms")Signed-off-by Marek Vasut <[email protected]>
Applied to u-boot-imx/next, thanks.