summaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone/config.mk
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-08-17 14:24:50 (GMT)
committerTom Rini <trini@konsulko.com>2015-08-28 16:33:15 (GMT)
commit5f586e9fa14ba93300eaac473b31b6cc0fee17dd (patch)
treed4d67733c2bdf47e239cd55fc5c6dbb42794d020 /arch/arm/mach-keystone/config.mk
parentcd43ddc01977ff07a731ef33b450089772e2225e (diff)
downloadu-boot-5f586e9fa14ba93300eaac473b31b6cc0fee17dd.tar.xz
ARM: keystone2: Rename u-boot-nand.gph to MLO
NAND boot mode, ROM expects an image with a gp header in the beginning and an 8bytes filled with zeros at the end. The same is true for SD boot on K2G platforms but the file name should be MLO. Renaming u-boot-nand.gph to MLO, so that same image can be used for NAND and SD boots. And also not including all the u-boot only images under CONFIG_SPL_BUILD. Reported-by: Nishanth Menon <nm@ti.com> Reviewed-by: Nishanth Menon <nm@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-keystone/config.mk')
-rw-r--r--arch/arm/mach-keystone/config.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-keystone/config.mk b/arch/arm/mach-keystone/config.mk
index 3fcda92..ff2fa68 100644
--- a/arch/arm/mach-keystone/config.mk
+++ b/arch/arm/mach-keystone/config.mk
@@ -15,8 +15,10 @@ OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO)
u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
$(call if_changed,pad_cat)
-MKIMAGEFLAGS_u-boot-nand.gph = -A $(ARCH) -T gpimage -C none \
+ifndef CONFIG_SPL_BUILD
+MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \
-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot
-u-boot-nand.gph: u-boot.bin FORCE
+MLO: u-boot.bin FORCE
$(call if_changed,mkimage)
@dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
+endif