From: Alison Wang Date: Thu, 18 Sep 2014 13:47:15 +0800 Subject: [U-Boot] [PATCH 3/7] spl: Use u-boot.img instead of u-boot.bin when CONFIG_SPL_PBL_PAD is enabled In-Reply-To: <1411019239-12360-1-git-send-email-b18965@freescale.com> References: <1411019239-12360-1-git-send-email-b18965@freescale.com> Message-ID: <1411019239-12360-4-git-send-email-b18965@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In SD boot, the magic number of u-boot image will be checked. For LS102xA, u-boot.bin doesn't have the magic number. So use u-boot.img which includes the magic number instead of u-boot.bin when building u-boot-with-spl-pbl.bin. Signed-off-by: Alison Wang --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6af424e..d4a3899 100644 --- a/Makefile +++ b/Makefile @@ -967,8 +967,10 @@ u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE ifdef CONFIG_SPL_PBL_PAD SPLPBL_BINLOAD := spl/u-boot-spl-pbl-pad.bin +UBOOT_BINLOAD := u-boot.img else SPLPBL_BINLOAD := spl/u-boot-spl.bin +UBOOT_BINLOAD := u-boot.bin endif #Add a target to create boot binary having SPL binary in PBI format @@ -989,7 +991,7 @@ spl/u-boot-spl-pbl-pad.bin: spl/u-boot-spl.bin FORCE OBJCOPYFLAGS_u-boot-with-spl-pbl.bin = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \ --gap-fill=0xff -u-boot-with-spl-pbl.bin: spl/u-boot-spl.pbl u-boot.bin FORCE +u-boot-with-spl-pbl.bin: spl/u-boot-spl.pbl $(UBOOT_BINLOAD) FORCE $(call if_changed,pad_cat) # PPC4xx needs the SPL at the end of the image, since the reset vector -- 1.8.0