From: Marek Vasut Date: Sat, 1 Jan 2022 18:50:39 +0000 (+0100) Subject: Makefile: imx: Do not call arch/arm/mach-imx flash.bin generation if BINMAN enabled X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=0c5cc164a911e1e2ae9b4de7224a10cea0309491;p=u-boot.git Makefile: imx: Do not call arch/arm/mach-imx flash.bin generation if BINMAN enabled Skip running arch/arm/mach-imx flash.bin generation in case BINMAN is enabled, otherwise the target in arch/arm/mach-imx/Makefile regenerates the flash.bin again and produces corrupted result. Signed-off-by: Marek Vasut Cc: Peng Fan Cc: Simon Glass Reviewed-by: Simon Glass --- diff --git a/Makefile b/Makefile index 184223ec63..a69cc088a7 100644 --- a/Makefile +++ b/Makefile @@ -1535,7 +1535,6 @@ 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 $@