From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cantor2.suse.de ([195.135.220.15]:43784 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864Ab1HKL4V (ORCPT ); Thu, 11 Aug 2011 07:56:21 -0400 Message-ID: <4E43C363.3000103@suse.cz> Date: Thu, 11 Aug 2011 13:56:19 +0200 From: Michal Marek MIME-Version: 1.0 Subject: Re: [PATCH 2/2] Enable 'make CONFIG_FOO=y oldconfig' References: <1312067499.22074.59.camel@i7.infradead.org> <4E4280BA.9050109@suse.cz> <1312981658.2989.39.camel@i7.infradead.org> <1312985888.2989.46.camel@i7.infradead.org> <1312993987.2989.53.camel@i7.infradead.org> <1312999168.2989.61.camel@i7.infradead.org> <1313002322.2989.88.camel@i7.infradead.org> <1313018232.2989.114.camel@i7.infradead.org> <1313052168.18037.9.camel@i7.infradead.org> <4E4399B3.3020909@suse.cz> <1313061012.18037.17.camel@i7.infradead.org> <1313062813.18037.24.camel@i7.infradead.org> In-Reply-To: <1313062813.18037.24.camel@i7.infradead.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: David Woodhouse Cc: Andreas Schwab , Arnaud Lacombe , "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org On 11.8.2011 13:40, David Woodhouse wrote: > On Thu, 2011-08-11 at 13:15 +0200, Andreas Schwab wrote: >>> That would be cute, but I'm not sure how to undefine something set on >>> the command line: >>> >>> $ cat > Makefile <>> undefine BAR >> >> override undefine BAR > > Thanks. So we don't really need to change the auto.conf syntax; we could > just do: > > $(foreach var, $(filter CONFIG_%,$(.VARIABLES)), $(eval override undefine $(var))) > > But still I suspect we might *not* want that for options set on the > command line. We *don't* want 'make CONFIG_FOO=y oldconfig bzImage' to > say 'you can't enable CONFIG_FOO' and then build the bzImage anyway. If you do $ echo 'CONFIG_FOO=y' >all.config $ make allnoconfig bzImage then it will also build bzImage even if kconfig wasn't able to set CONFIG_FOO=y. IMO printing a warning that CONFIG_FOO could not be set is sufficient, as long as CONFIG_FOO is consistently unset. Michal