]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/bootwrapper: Allow user to specify additional default targets
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 9 Jul 2008 15:41:52 +0000 (09:41 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 9 Jul 2008 15:41:52 +0000 (09:41 -0600)
It is inconvenient to add additional default targets to the bootwrapper
Makefile for each new board supported which just needs a different dts
file.  This change allows the defconfig to specify additional build
targets.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/Kconfig
arch/powerpc/boot/Makefile

index f2a0f50146e1d5cfdb8a4cd3c46bcf303f90807f..3216a3a983964062c39adca66bb49a82941a290c 100644 (file)
@@ -458,6 +458,19 @@ config CMDLINE
          some command-line options at build time by entering them here.  In
          most cases you will need to specify the root device here.
 
+config EXTRA_TARGETS
+       string "Additional default image types"
+       help
+         List additional targets to be built by the bootwrapper here (separated
+         by spaces).  This is useful for targets that depend of device tree
+         files in the .dts directory.
+
+         Targets in this list will be build as part of the default build
+         target, or when the user does a 'make zImage' or a
+         'make zImage.initrd'.
+
+         If unsure, leave blank
+
 if !44x || BROKEN
 config ARCH_WANTS_FREEZER_CONTROL
        def_bool y
index df6e62116e37097444422277fac0dbee670da218..88d30dbed7b758e75a0ff1a003e241f14d48e12d 100644 (file)
@@ -276,6 +276,9 @@ ifeq ($(CONFIG_PPC32),y)
 image-$(CONFIG_PPC_PMAC)       += zImage.coff zImage.miboot
 endif
 
+# Allow extra targets to be added to the defconfig
+image-y        += $(subst ",,$(CONFIG_EXTRA_TARGETS))
+
 initrd-  := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-))
 initrd-y := $(patsubst zImage%, zImage.initrd%, \
                $(patsubst dtbImage%, dtbImage.initrd%, \