]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
spl: introduce CONFIG_SPL_TARGET
authorScott Wood <scottwood@freescale.com>
Fri, 21 Sep 2012 21:27:32 +0000 (16:27 -0500)
committerScott Wood <scottwood@freescale.com>
Mon, 26 Nov 2012 21:41:21 +0000 (15:41 -0600)
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
README

index f2882a17c36742b2f9a1bd9a7d550ebf719287fe..5f8b02c36a5ea624c9f590838737aedb2ec2f328 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -407,6 +407,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 2dc098462dd3cdb0d151928efa0b31ce3e8d05b5..211bad03d53bb986b5e7b6142538ae0cd026ee10 100644 (file)
--- a/README
+++ b/README
@@ -2746,6 +2746,11 @@ FIT uImage format:
                CONFIG_SPL_LIBGENERIC_SUPPORT
                Support for lib/libgeneric.o in SPL binary
 
+               CONFIG_SPL_TARGET
+               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:
 --------------