SPL_PAYLOAD should be .img in case of ARM architecture and .bin in
case of other architectures. This patch takes care of the same by choosing
the SPL_PAYLOAD as u-boot.img for ARM architecture and u-boot.bin for others.

Signed-off-by: Raghav Dogra <raghav.do...@nxp.com>
---
 Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile b/Makefile
index c66bd2f..4618548 100644
--- a/Makefile
+++ b/Makefile
@@ -941,6 +941,9 @@ u-boot.cfg: include/config.h FORCE
 ifdef CONFIG_TPL
 SPL_PAYLOAD := tpl/u-boot-with-tpl.bin
 else
+ifeq ($(ARCH),arm)
+SPL_PAYLOAD := u-boot.img
+else
 SPL_PAYLOAD := u-boot.bin
 endif
 
-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to