From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murali Karicheri Date: Mon, 3 Mar 2014 13:20:13 -0500 Subject: [U-Boot] [U-Boot PATCH v2 08/12] k2hk: add support for k2hk SOC and EVM In-Reply-To: <20140225221143.GK16805@bill-the-cat> References: <1392918914-15564-1-git-send-email-m-karicheri2@ti.com> <1392918914-15564-9-git-send-email-m-karicheri2@ti.com> <20140225221143.GK16805@bill-the-cat> Message-ID: <5314C7DD.4090406@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de diff --git a/Makefile b/Makefile index 47a03e3..ea2a387 100644 --- a/Makefile +++ b/Makefile @@ -491,6 +491,23 @@ $(obj)u-boot.spr: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff $@ cat $(obj)u-boot.img >> $@ +$(obj)u-boot-spi.gph: $(obj)u-boot.img $(obj)spl/u-boot-spl.bin + $(obj)tools/mkimage -A $(ARCH) -T gpimage -C none \ + -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) \ + -n SPL -d $(obj)spl/u-boot-spl.bin $(obj)spl/u-boot-spl.gph + $(OBJCOPY) ${OBJCFLAGS} -I binary \ + --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0 -O binary \ + $(obj)spl/u-boot-spl.gph $(obj)spl/u-boot-spl-pad.gph + cat $(obj)spl/u-boot-spl-pad.gph $(obj)u-boot.img > $@ + +$(obj)u-boot-nand.gph: $(obj)u-boot.bin + $(obj)tools/mkimage -A $(ARCH) -T gpimage -C none \ + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \ + -n U-Boot -d $(obj)u-boot.bin $(obj)gph-u-boot.bin + @dd if=/dev/zero of=$(obj)zero.bin bs=8 count=1 2>/dev/null + @cat $(obj)gph-u-boot.bin $(obj)zero.bin > $@ + @rm $(obj)zero.bin > First, these need re-writing for Kbuild. Second, we don't ever use > u-boot-nand.gph or talk about it in the README, do we? Tom, Will remove remove u-boot-nand.gph for time being as we didn't verify nand boot in this series. What you mean by re-writing for kbuild. The u-boot-spi.gph target is added similar to existing u-boot-spr (see just above this target). Could you provide an example? Murali