From subversion@balloonboard.org Tue May 08 16:49:50 2012
Received: from nick by stoneboat.aleph1.co.uk with local (Exim 4.72)
	(envelope-from <subversion@balloonboard.org>) id 1SRmfe-0006pa-5F
	for balloon-svn@balloonboard.org; Tue, 08 May 2012 16:49:50 +0100
Message-Id: <E1SRmfe-0006pa-5F@stoneboat.aleph1.co.uk>
Date: Tue,  8 May 2012 16:49:50 +0100
To: balloon-svn@balloonboard.org
From: subversion@balloonboard.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: subversion@balloonboard.org
X-SA-Exim-Scanned: No (on stoneboat.aleph1.co.uk);
	SAEximRunCond expanded to false
Subject: [Balloon-svn] r1873 - balloon/branches/menuconfig2
X-BeenThere: balloon-svn@balloonboard.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <balloon-svn.balloonboard.org>
List-Unsubscribe: <http://balloonboard.org/cgi-bin/mailman/options/balloon-svn>, 
	<mailto:balloon-svn-request@balloonboard.org?subject=unsubscribe>
List-Archive: <http://balloonboard.org/lurker/list/balloon-svn.html>
List-Post: <mailto:balloon-svn@balloonboard.org>
List-Help: <mailto:balloon-svn-request@balloonboard.org?subject=help>
List-Subscribe: <http://balloonboard.org/cgi-bin/mailman/listinfo/balloon-svn>, 
	<mailto:balloon-svn-request@balloonboard.org?subject=subscribe>
X-List-Received-Date: Tue, 08 May 2012 15:49:50 -0000

Author: nick
Date: 2012-05-08 16:49:50 +0100 (Tue, 08 May 2012)
New Revision: 1873

Modified:
   balloon/branches/menuconfig2/Config.in
   balloon/branches/menuconfig2/Makefile.in
Log:
add subvariant support at top level

Modified: balloon/branches/menuconfig2/Config.in
===================================================================
--- balloon/branches/menuconfig2/Config.in	2012-05-08 15:49:22 UTC (rev 1872)
+++ balloon/branches/menuconfig2/Config.in	2012-05-08 15:49:50 UTC (rev 1873)
@@ -124,6 +124,15 @@
 
 endchoice
 
+config BR2_USE_SUBVARIANT
+	bool "Specify a named subvariant"
+	default n
+
+config BR2_SUBVARIANT
+	depends on BR2_USE_SUBVARIANT
+	string "Subvariant name"
+	default ""
+
 config BR2_MAKE_JOBS
 	int "Number of simultaneous jobs a 'make' can launch (max 8)"
 	default 1

Modified: balloon/branches/menuconfig2/Makefile.in
===================================================================
--- balloon/branches/menuconfig2/Makefile.in	2012-05-08 15:49:22 UTC (rev 1872)
+++ balloon/branches/menuconfig2/Makefile.in	2012-05-08 15:49:50 UTC (rev 1873)
@@ -64,7 +64,14 @@
 VARIANT:=-specs
 endif
 
+ifeq ($(BR2_USE_SUBVARIANT),y)
+ifneq ($(BR2_SUBVARIANT),"")
+SUBVARIANT=$(BR2_SUBVARIANT)
+endif
+endif
+
 export VARIANT
+export SUBVARIANT
 
 export FAKEROOT=`if [ -z $$FAKEROOTKEY ]; then echo "fakeroot -i $(BUILD)/fakerootstate -s $(BUILD)/fakerootstate"; fi;`
 
@@ -82,5 +89,8 @@
 #
 #CONFIG_TARGETS:=board_variant
 
+# utility to remove double quotes and whitespace
+qstrip=$(strip $(subst ",,$(1)))
+
 # include the package makefiles
 include $(PACKAGEDIR)/Makefile.in


