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: [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base
Date: Tue, 14 Sep 2010 04:50:09 +0100	[thread overview]
Message-ID: <1284436209.5323.744.camel@localhost> (raw)
In-Reply-To: <4C8E3B15.2040807@suse.cz>

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
 
 %_defconfig: $(obj)/conf
 	$(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
-- 
1.7.1

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

  reply	other threads:[~2010-09-14  3:50 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   ` Ben Hutchings [this message]
2010-10-01 14:05     ` [PATCH 1/2] Kbuild: Treat KBUILD_DEFCONFIG=old as request to use .config as the base Michal Marek
2010-10-01 22:47       ` Ben Hutchings
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=1284436209.5323.744.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