From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755302Ab1HKLkU (ORCPT ); Thu, 11 Aug 2011 07:40:20 -0400 Received: from casper.infradead.org ([85.118.1.10]:54883 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753522Ab1HKLkR (ORCPT ); Thu, 11 Aug 2011 07:40:17 -0400 Subject: Re: [PATCH 2/2] Enable 'make CONFIG_FOO=y oldconfig' From: David Woodhouse To: Andreas Schwab Cc: Michal Marek , Arnaud Lacombe , "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Date: Thu, 11 Aug 2011 12:40:10 +0100 In-Reply-To: References: <1312067499.22074.59.camel@i7.infradead.org> <4E4140B3.7090802@suse.cz> <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> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2 (3.0.2-3.fc15) Content-Transfer-Encoding: 7bit Message-ID: <1313062813.18037.24.camel@i7.infradead.org> Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I'll look at making it work only if what's on the command line matches the output of kconfig, but I'm also relatively content with saying "no config overrides on the command line for build targets" -- dwmw2