diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-07-04 15:03:26 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-25 15:21:06 -0400 |
commit | 0e7f2dbac6ead25798f81c9f6d5f80b7666916f6 (patch) | |
tree | af188078692430e8bab34bcdad82dd10b51fae63 /Makefile | |
parent | 67ac6ffaeefb93ff294f976cbb03479f84aa0b1a (diff) | |
download | u-boot-imx-0e7f2dbac6ead25798f81c9f6d5f80b7666916f6.zip u-boot-imx-0e7f2dbac6ead25798f81c9f6d5f80b7666916f6.tar.gz u-boot-imx-0e7f2dbac6ead25798f81c9f6d5f80b7666916f6.tar.bz2 |
keystone: add support for NAND gpheader image
Add support for NAND gpheader image. TI Keystone2 ROM bootloader
expects 8 bytes of trailing zeroes in the nand u-boot image.
So add zeros at the end of the nand gph image.
Acked-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -914,6 +914,12 @@ 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 \ + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot +u-boot-nand.gph: u-boot.bin FORCE + $(call if_changed,mkimage) + @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@ + ifneq ($(CONFIG_SUNXI),) OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \ --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff |