From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 14 Sep 2012 20:22:10 +0200 Subject: [U-Boot] [PATCH v2 10/11] Add u-boot-ubl.bin target to the Makefile In-Reply-To: <1347643742-19966-11-git-send-email-jose.goncalves@inov.pt> References: <1347643742-19966-1-git-send-email-jose.goncalves@inov.pt> <1347643742-19966-11-git-send-email-jose.goncalves@inov.pt> Message-ID: <201209142022.11162.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jos? Miguel Gon?alves, > Samsung's S3C24XX SoCs need this in order to generate a binary image > with the SPL and U-Boot concatenated. You aren't adding it, you're modifying it. > Signed-off-by: Jos? Miguel Gon?alves > --- > Changes for v2: > - None > --- > Makefile | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Makefile > index 058fb53..595b5f6 100644 > --- a/Makefile > +++ b/Makefile > @@ -442,13 +442,14 @@ $(obj)u-boot.sha1: $(obj)u-boot.bin > $(obj)u-boot.dis: $(obj)u-boot > $(OBJDUMP) -d $< > $@ > > -$(obj)u-boot.ubl: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin > +$(obj)u-boot-ubl.bin: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin > $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(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-ubl.bin + rm > $(obj)spl/u-boot-spl-pad.bin > + > +$(obj)u-boot.ubl: $(obj)u-boot-ubl.bin > $(obj)tools/mkimage -n $(UBL_CONFIG) -T ublimage \ > -e $(CONFIG_SYS_TEXT_BASE) -d $(obj)u-boot-ubl.bin $(obj)u- boot.ubl > - rm $(obj)u-boot-ubl.bin > - rm $(obj)spl/u-boot-spl-pad.bin Check the apollon board, won't this colide with it's NAND IPL? > $(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin > $(obj)tools/mkimage -s -n $(if > $(CONFIG_AIS_CONFIG_FILE),$(CONFIG_AIS_CONFIG_FILE),"/dev/null") \ Best regards, Marek Vasut