[U-Boot,v2,07/22] spl: introduce CONFIG_SPL_TARGET

Message ID 1351562710-6237-8-git-send-email-scottwood@freescale.com
State Accepted
Delegated to: Scott Wood
Headers show

Commit Message

Scott Wood Oct. 30, 2012, 2:04 a.m.
Currently the SPL target is specified in a CPU-specific makefile
fragment.  While some targets may need something more complicated than a
simple target name, targets which don't need this shouldn't have to provide a makefile fragment just for this.

Signed-off-by: Scott Wood <scottwood@freescale.com>
v2: Removed default target as it's been pointed out to me how existing platforms
cause the SPL to be built.
 Makefile |    1 +
 README   |    5 +++++
 2 files changed, 6 insertions(+)


diff --git a/Makefile b/Makefile
index 61f4d69..7630ce9 100644
--- a/Makefile
+++ b/Makefile
@@ -403,6 +403,7 @@  ALL-y += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map
 ALL-$(CONFIG_NAND_U_BOOT) += $(obj)u-boot-nand.bin
 ALL-$(CONFIG_ONENAND_U_BOOT) += $(obj)u-boot-onenand.bin
 ALL-$(CONFIG_SPL) += $(obj)spl/u-boot-spl.bin
+ALL-$(CONFIG_SPL) += $(obj)$(subst ",,$(CONFIG_SPL_TARGET))
 ALL-$(CONFIG_OF_SEPARATE) += $(obj)u-boot.dtb $(obj)u-boot-dtb.bin
 # enable combined SPL/u-boot/dtb rules for tegra
diff --git a/README b/README
index 4f16240..4294c2e 100644
--- a/README
+++ b/README
@@ -2726,6 +2726,11 @@  FIT uImage format:
 		Support for lib/libgeneric.o in SPL binary
+		Final target image containing SPL and payload.  Some SPLs
+		use an arch-specific makefile fragment instead, for
+		example if more than one image needs to be produced.
 Modem Support: