From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 57D89DDEBA for ; Sun, 17 Jun 2007 10:19:46 +1000 (EST) In-Reply-To: References: <20070612163016.253915076@arndb.de> <18032.40447.579128.989284@cargo.ozlabs.ibm.com> <1181954800.26853.103.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [patch 00/13] CPU selection Kconfig cleanup, take 3 Date: Sun, 17 Jun 2007 02:19:36 +0200 To: Kumar Gala Cc: Stephen Rothwell , arnd@arndb.de, linuxppc-dev@ozlabs.org, Paul Mackerras , Sam Ravnborg List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> I would much >> prefer the CONFIG_xxx_ONLY_ONE be -generated- by the multiple choice >> menu if only one choice has been selected. >> >> That could be an optional argument to the menu stuff to set that. > > That was my intent, that the Kconfig system would help in telling us > only one choice was selected and we could optimize based on that. In > addition, to ensure that at least one choice was selected. I believe > Rob Landley came across an issue that exists today with MULTIPLATFORM > support in that we can attempt to build a kernel w/o any system. Each of the CPU options is set to either "y" or "", so: options-$(option1)$(option2)$(option3) := y ifeq ($(options)-,y) $(error blablabla) endif CONFIG_POWERPC_ONLY_ONE_CPU := $(options-y) or some variant on this will do just fine. Segher