summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-08-22 10:42:41 +0300
committerStefano Babic <sbabic@denx.de>2019-10-08 17:35:58 +0300
commit700315c9ac4d44740884ed6a02a5dc56bec92868 (patch)
tree4ec03a3b413042d39acd7038bf040052e1dd6d7c /Makefile
parentdd7d0911e0048e4ddb8a4084d2221242aed8c62b (diff)
downloadu-boot-700315c9ac4d44740884ed6a02a5dc56bec92868.tar.xz
imx: add container target
To support SPL loading container file, add a new Makefile target, and introduce a new Kconfig file to source the cfg file which will be parsed by mkimage. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 54da5cd51c..733bcecd08 100644
--- a/Makefile
+++ b/Makefile
@@ -1365,9 +1365,17 @@ 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)
+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 u-boot.itb FORCE
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
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 $@