public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Michal Marek <mmarek@suse.cz>
Cc: maximilian attems <max@stro.at>,
	linux-kbuild@vger.kernel.org, Bastian Blank <waldi@debian.org>
Subject: Re: [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base
Date: Fri, 01 Oct 2010 23:47:34 +0100	[thread overview]
Message-ID: <1285973254.3916.68.camel@localhost> (raw)
In-Reply-To: <4CA5EA97.3060405@suse.cz>

[-- Attachment #1: Type: text/plain, Size: 1609 bytes --]

On Fri, 2010-10-01 at 16:05 +0200, Michal Marek wrote:
> On 14.9.2010 05:50, Ben Hutchings wrote:
> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> > ---
> > This should work as a substitute for Debian's updateoldconfig.
> > 
> > Ben.
> > 
> >  scripts/kconfig/Makefile |    4 ++++
> >  1 files changed, 4 insertions(+), 0 deletions(-)
> > 
> > diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> > index cef3f75..19558a7 100644
> > --- a/scripts/kconfig/Makefile
> > +++ b/scripts/kconfig/Makefile
> > @@ -112,9 +112,13 @@ defconfig: $(obj)/conf
> >  ifeq ($(KBUILD_DEFCONFIG),)
> >  	$< --defconfig $(Kconfig)
> >  else
> > +ifeq ($(KBUILD_DEFCONFIG),old)
> > +	$< --defconfig=.config $(Kconfig)
> > +else
> >  	@echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
> >  	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
> >  endif
> > +endif
> 
> KBUILD_DEFCONFIG is an internal variable used by arch Makefiles to
> select the defconfig file, it should not be abused for a completely
> different purpose.

OK.

> Also, the same can be achieved with 'make
> oldnoconfig' or 'yes "" | make oldconfig' in older kernels.

'make oldnoconfig' does something different - it answers N to all
questions rather than accepting the default.

'yes "" | make oldconfig' does pretty much what we want, except that
it's noisy.  But personally I don't care that much about it.  Max,
Bastian, do you rely on this target?

Ben.

-- 
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2010-10-01 22:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-13 14:38 Kconfig add reportoldconfig and updateoldconfig targets maximilian attems
2010-09-13 14:54 ` Michal Marek
2010-09-14  3:50   ` [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base Ben Hutchings
2010-10-01 14:05     ` Michal Marek
2010-10-01 22:47       ` Ben Hutchings [this message]
2010-10-02 12:14         ` Sam Ravnborg
2010-09-14  3:52   ` [PATCH 2/2] Kbuild: kconfig: Verbose version of --listnewconfig and --defconfig Ben Hutchings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1285973254.3916.68.camel@localhost \
    --to=ben@decadent.org.uk \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=max@stro.at \
    --cc=mmarek@suse.cz \
    --cc=waldi@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox