aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrabhakar Kushwaha2014-04-08 08:43:34 -0500
committerYork Sun2014-04-22 19:58:51 -0500
commit89ad7be8e713f33ec677cf4576e0c9b0ed83f7c6 (patch)
tree4cc2d7b402e94354e4928d4da9dedc8dbceb53e0 /Makefile
parent1eaa742d85a59ed3602a78445adf903f26d9b594 (diff)
downloadu-boot-89ad7be8e713f33ec677cf4576e0c9b0ed83f7c6.tar.gz
u-boot-89ad7be8e713f33ec677cf4576e0c9b0ed83f7c6.tar.xz
u-boot-89ad7be8e713f33ec677cf4576e0c9b0ed83f7c6.zip
Makefile: Add support of CONFIG_SPL_FSL_PBL
Objective of this target to have concatenate binary having - SPL binary in PBL command format - U-boot binary Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6aaf1169c5..00e4b2aa6b 100644
--- a/Makefile
+++ b/Makefile
@@ -740,7 +740,11 @@ ALL-y += u-boot.srec u-boot.bin System.map
740 740
741ALL-$(CONFIG_NAND_U_BOOT) += u-boot-nand.bin 741ALL-$(CONFIG_NAND_U_BOOT) += u-boot-nand.bin
742ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin 742ALL-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
743ifeq ($(CONFIG_SPL_FSL_PBL),y)
744ALL-$(CONFIG_RAMBOOT_PBL) += u-boot-with-spl-pbl.bin
745else
743ALL-$(CONFIG_RAMBOOT_PBL) += u-boot.pbl 746ALL-$(CONFIG_RAMBOOT_PBL) += u-boot.pbl
747endif
744ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin 748ALL-$(CONFIG_SPL) += spl/u-boot-spl.bin
745ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img 749ALL-$(CONFIG_SPL_FRAMEWORK) += u-boot.img
746ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin 750ALL-$(CONFIG_TPL) += tpl/u-boot-tpl.bin
@@ -925,6 +929,21 @@ endif
925u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE 929u-boot-img.bin: spl/u-boot-spl.bin u-boot.img FORCE
926 $(call if_changed,cat) 930 $(call if_changed,cat)
927 931
932#Add a target to create boot binary having SPL binary in PBI format
933#concatenated with u-boot binary. It is need by PowerPC SoC having
934#internal SRAM <= 512KB.
935MKIMAGEFLAGS_u-boot-spl.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
936 -R $(srctree)/$(CONFIG_SYS_FSL_PBL_PBI:"%"=%) -T pblimage
937
938spl/u-boot-spl.pbl: spl/u-boot-spl.bin FORCE
939 $(call if_changed,mkimage)
940
941OBJCOPYFLAGS_u-boot-with-spl-pbl.bin = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
942 --gap-fill=0xff
943
944u-boot-with-spl-pbl.bin: spl/u-boot-spl.pbl u-boot.bin FORCE
945 $(call if_changed,pad_cat)
946
928# PPC4xx needs the SPL at the end of the image, since the reset vector 947# PPC4xx needs the SPL at the end of the image, since the reset vector
929# is located at 0xfffffffc. So we can't use the "u-boot-img.bin" target 948# is located at 0xfffffffc. So we can't use the "u-boot-img.bin" target
930# and need to introduce a new build target with the full blown U-Boot 949# and need to introduce a new build target with the full blown U-Boot