public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: maximilian attems <maks@sternwelten.at>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>, Sam Ravnborg <sam@ravnborg.org>,
	Bastian Blank <waldi@debian.org>
Subject: [patch] kbuild: add automatic updateconfig target
Date: Wed, 18 Jan 2006 20:40:56 +0100	[thread overview]
Message-ID: <20060118194056.GA26532@nancy> (raw)

From: Bastian Blank <waldi@debian.org>

current hack for daily build linux-2.6-git is quite ugly: 
yes "n" | make oldconfig

belows target helps to build git snapshots in a more automated way,
setting the new options to their default.

Signed-off-by: maximilian attems <maks@sternwelten.at>


diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 5760e05..5bf2718 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -23,6 +23,9 @@ oldconfig: $(obj)/conf
 silentoldconfig: $(obj)/conf
 	$< -s arch/$(ARCH)/Kconfig
 
+updateconfig: $(obj)/conf
+	$< -U arch/$(ARCH)/Kconfig
+
 update-po-config: $(obj)/kxgettext
 	xgettext --default-domain=linux \
           --add-comments --keyword=_ --keyword=N_ \
@@ -74,6 +77,7 @@ help:
 	@echo  '  xconfig	  - Update current config utilising a QT based front-end'
 	@echo  '  gconfig	  - Update current config utilising a GTK based front-end'
 	@echo  '  oldconfig	  - Update current config utilising a provided .config as base'
+	@echo  '  updateconfig	  - Update current config in an automated way'
 	@echo  '  randconfig	  - New config with random answer to all options'
 	@echo  '  defconfig	  - New config with default answer to all options'
 	@echo  '  allmodconfig	  - New config selecting modules when possible'
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 10eeae5..4e7b6a1 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -24,7 +24,8 @@ enum {
 	set_yes,
 	set_mod,
 	set_no,
-	set_random
+	set_random,
+	update_default,
 } input_mode = ask_all;
 char *defconfig_file;
 
@@ -117,6 +118,7 @@ static void conf_askvalue(struct symbol 
 		fgets_check_stream(line, 128, stdin);
 		return;
 	case set_default:
+	case update_default:
 		printf("%s\n", def);
 		return;
 	default:
@@ -390,6 +392,7 @@ static int conf_choice(struct menu *menu
 		case set_yes:
 		case set_mod:
 		case set_no:
+		case update_default:
 			cnt = def;
 			printf("%d\n", cnt);
 			break;
@@ -544,6 +547,9 @@ int main(int ac, char **av)
 			input_mode = set_random;
 			srandom(time(NULL));
 			break;
+		case 'U':
+			input_mode = update_default;
+			break;
 		case 'h':
 		case '?':
 			printf("%s [-o|-s] config\n", av[0]);
@@ -568,6 +574,7 @@ int main(int ac, char **av)
 		}
 		break;
 	case ask_silent:
+	case update_default:
 		if (stat(".config", &tmpstat)) {
 			printf(_("***\n"
 				"*** You have not yet configured your kernel!\n"

             reply	other threads:[~2006-01-18 19:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18 19:40 maximilian attems [this message]
2006-01-18 20:42 ` [patch] kbuild: add automatic updateconfig target Sam Ravnborg
2006-01-18 20:47   ` Sam Ravnborg
2006-01-18 22:32     ` maximilian attems
2006-01-18 22:52     ` maximilian attems
2006-01-19 10:13     ` Bastian Blank
2006-01-19 11:50 ` Roman Zippel
2006-01-19 17:37   ` maximilian attems
2006-01-19 17:51     ` Roman Zippel

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=20060118194056.GA26532@nancy \
    --to=maks@sternwelten.at \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --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