X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Makefile;h=76533135f27f61bc09ff114d28e9825e3d8a879e;hb=b1babef856f936278d24bd0bf84f9cf702df2392;hp=686cab1460fc82f433edb4466de5498dbf8b7d31;hpb=a176ff0705351bf6d993a8f15e081bfa2ba2e1af;p=u-boot diff --git a/Makefile b/Makefile index 686cab1460..76533135f2 100644 --- a/Makefile +++ b/Makefile @@ -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