From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 29 Jul 2013 17:29:24 -0500 Subject: [U-Boot] [PATCH v4 4/4] Update u-boot-nand.bin to be used with spl In-Reply-To: <1375042616-24680-5-git-send-email-tremyfr@yahoo.fr> (from tremyfr@yahoo.fr on Sun Jul 28 15:16:56 2013) References: <1375042616-24680-1-git-send-email-tremyfr@yahoo.fr> <1375042616-24680-5-git-send-email-tremyfr@yahoo.fr> Message-ID: <1375136964.30721.61@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/28/2013 03:16:56 PM, Philippe Reynes wrote: > Signed-off-by: Philippe Reynes > Signed-off-by: Eric Jarrige > --- > Makefile | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/Makefile b/Makefile > index 4218226..b971f30 100644 > --- a/Makefile > +++ b/Makefile > @@ -617,8 +617,14 @@ $(obj)u-boot.lds: $(LDSCRIPT) > nand_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) depend > $(MAKE) -C nand_spl/board/$(BOARDDIR) all > > +ifeq ($(CONFIG_SPL),y) > +$(obj)u-boot-nand.bin: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin > + $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(CONFIG_SPL_PAD_TO) > -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin && \ > + cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin > > $(obj)u-boot-nand.bin > +else > $(obj)u-boot-nand.bin: nand_spl $(obj)u-boot.bin > cat $(obj)nand_spl/u-boot-spl-16k.bin > $(obj)u-boot.bin > $(obj)u-boot-nand.bin > +endif > > $(obj)spl/u-boot-spl.bin: $(SUBDIR_TOOLS) depend > $(MAKE) -C spl all u-boot-nand.bin is from the legacy nand_spl subsystem. You should be using u-boot-with-spl.bin if you want this sort of image concatenation with the new SPL. -Scott