From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from 64.mail-out.ovh.net ([91.121.185.65]:45771 "HELO 64.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756148Ab1EQSa7 (ORCPT ); Tue, 17 May 2011 14:30:59 -0400 Date: Tue, 17 May 2011 20:19:38 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Subject: Re: [PATCH v2] kconfig: autogenerated config_is_xxx macro Message-ID: <20110517181938.GD18699@game.jcrosoft.org> References: <1304658229-30820-1-git-send-email-plagnioj@jcrosoft.com> <20110517144510.GQ13293@sepie.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110517144510.GQ13293@sepie.suse.cz> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Michal Marek Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org On 16:45 Tue 17 May , Michal Marek wrote: > On Fri, May 06, 2011 at 07:03:49AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > this will allow to use to use > > > > if(config_is_xxx()) > > if(config_is_xxx_module()) > > > > in the code instead of > > > > #ifdef CONFIG_xxx > > #ifdef CONFIG_xxx_MODULE > > > > and now let the compiler remove the non usefull code and not the > > pre-processor > > > > as done in the mach-types for arm as exmaple > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > I pushed this to kbuild-2.6.git#kconfig, but I found an issue that needs > to be fixed before we start using this feature: scripts/basic/fixdep > scans source files for occurences of CONFIG_xxx and adds dependencies on > include/config/xxx. It needs to be taught to match config_is_xxx as > well. ok I take a look as I'm some patch that use it Best Regards, J.