Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754244Ab3C2AoM (ORCPT ); Thu, 28 Mar 2013 20:44:12 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:35035 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754099Ab3C2AoJ convert rfc822-to-8bit (ORCPT ); Thu, 28 Mar 2013 20:44:09 -0400 X-IronPort-AV: E=Sophos;i="4.87,370,1363104000"; d="scan'208";a="6965379" Subject: Re: [PATCH] Makefile: allow no update .config build From: li guang To: Randy Dunlap Cc: mmarek@suse.cz, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <51547A4E.4010600@infradead.org> References: <1364455686-18930-1-git-send-email-lig.fnst@cn.fujitsu.com> <51547A4E.4010600@infradead.org> Date: Fri, 29 Mar 2013 08:41:49 +0800 Message-ID: <1364517710.31713.60.camel@liguang.fnst.cn.fujitsu.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/29 08:43:16, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/29 08:43:17, Serialize complete at 2013/03/29 08:43:17 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2508 Lines: 68 在 2013-03-28四的 10:13 -0700,Randy Dunlap写道: > On 03/28/13 00:28, liguang wrote: > > if we pull some commits from other git repo > > which bring in a few CONFIG_* options, then > > we have to build all again, but we do assure > > these options are not interesting for us, > > so the long waiting build will be offending. > > this change help us to avoid all-build. > > > > Signed-off-by: liguang > > --- > > Makefile | 9 +++++++++ > > 1 files changed, 9 insertions(+), 0 deletions(-) > > > > diff --git a/Makefile b/Makefile > > index 54d2b2a..d10e505 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -106,6 +106,12 @@ ifeq ("$(origin W)", "command line") > > export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W) > > endif > > > > +# KBUILD_NCU is set to do not update .config even > > +# a few new CONFIG_* options appeared > > +ifeq ("$(origin NCU)", "command line") > > + KBUILD_NCU := $(NCU) > > +endif > > + > > # That's our default target when none is given on the command line > > PHONY := _all > > _all: > > @@ -540,8 +546,10 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ; > > # with it and forgot to run make oldconfig. > > # if auto.conf.cmd is missing then we are probably in a cleaned tree so > > # we execute the config step to be sure to catch updated Kconfig files > > +ifneq ($(KBUILD_NCU), 1) > > include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd > > $(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig > > +endif # $(KBUILD_NCU) > > else > > # external modules needs include/generated/autoconf.h and include/config/auto.conf > > # but do not care if they are up-to-date. Use auto.conf to trigger the test > > @@ -1157,6 +1165,7 @@ help: > > @echo ' 2: warnings which occur quite often but may still be relevant' > > @echo ' 3: more obscure warnings, can most likely be ignored' > > @echo ' Multiple levels can be combined with W=12 or W=123' > > + @echo ' make NCU=1 [targets] no .config udate' > > update OK, I'll update. Thanks! > > > @echo '' > > @echo 'Execute "make" or "make all" to build all targets marked with [*] ' > > @echo 'For further info see the ./README file' > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/