public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: Vladimir <snigga@mail.ru>
Cc: linux-kernel-list <linux-kernel@vger.kernel.org>,
	Roman Zippel <zippel@linux-m68k.org>
Subject: Re: PROBLEM: "Make nenuconfig" does not save parameters.
Date: Sat, 10 Mar 2007 19:06:14 +0300	[thread overview]
Message-ID: <20070310160614.GB10230@cvg> (raw)
In-Reply-To: <20070310160542.21cdb968@localhost>

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

[Vladimir - Sat, Mar 10, 2007 at 04:05:42PM +0300]
| Here's the problem:
|   1. Unpack the kernel sources, run make menuconfig.
|   2. Mark the necessary options.
|   3. Pick "Save an alternate configuration file", enter a filename (e.g. /root/kernelcfg)
|   4. Pick "Exit".
| ->5. Configurator exits without saving. If type "make bzImage", it builtd all the default options.
| 
| And there's no ".config" file in kernel root directory, so i have to move there my "kernelcfg" and
| rename it.
| 
| If i just run "make menuconfig", then pick "Exit", then it asks "Save kernel configuration?".
| 
| This happens starting from kernel 2.6.20 till 2.6.20.2
| Slackware-current.
| PC: Athlon-XP 2000+, 256 MB RAM.
| Linux wolf 2.6.20.2 #1 SMP PREEMPT Sat Mar 10 15:41:42 MSK 2007 i686 athlon-4 i386 GNU/Linux
| -- 
| Faith manages.
| -
| 

Hi, Vladimir

here is the patch to resolve your problem. Test it and write me the
results...

		Cyrill


[-- Attachment #2: patch.diff --]
[-- Type: text/plain, Size: 979 bytes --]

diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 664fe29..98836b6 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -432,8 +432,7 @@ int conf_write(const char *name)
 		     use_timestamp ? "# " : "",
 		     use_timestamp ? ctime(&now) : "");
 
-	if (!conf_get_changed())
-		sym_clear_all_valid();
+	sym_clear_all_valid();
 
 	menu = rootmenu.list;
 	while (menu) {
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 3f9a132..ea32df8 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -840,8 +840,11 @@ static void conf_save(void)
 		case 0:
 			if (!dialog_input_result[0])
 				return;
-			if (!conf_write(dialog_input_result))
+			res = conf_get_changed(); /* temporary used */
+			if (!conf_write(dialog_input_result)) {
+				sym_set_change_count(res);
 				return;
+			}
 			show_textbox(NULL, _("Can't create file!  Probably a nonexistent directory."), 5, 60);
 			break;
 		case 1:

  parent reply	other threads:[~2007-03-10 16:09 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-10 13:05 PROBLEM: "Make nenuconfig" does not save parameters Vladimir
2007-03-10 14:25 ` Cyrill Gorcunov
2007-03-10 16:06 ` Cyrill Gorcunov [this message]
2007-03-10 16:26   ` Jan Engelhardt
2007-03-10 16:35     ` Cyrill Gorcunov
2007-03-10 16:47       ` Jan Engelhardt
     [not found]     ` <20070310194617.2aef1006@localhost>
2007-03-10 16:50       ` Jan Engelhardt
2007-03-10 17:50         ` Cyrill Gorcunov
2007-03-10 18:23           ` Jan Engelhardt
2007-03-10 18:50             ` Cyrill Gorcunov
2007-03-10 19:04               ` Jan Engelhardt
2007-03-10 19:31                 ` Cyrill Gorcunov
2007-03-10 21:27             ` Sam Ravnborg
2007-03-10 21:34               ` Jan Engelhardt
2007-03-10 22:45                 ` Sam Ravnborg
2007-03-10 23:22                   ` Jan Engelhardt
2007-03-11  7:44                   ` Cyrill Gorcunov
2007-03-11 10:07                   ` Cyrill Gorcunov
2007-03-11 19:50                     ` Sam Ravnborg
2007-03-12  6:00                       ` Cyrill Gorcunov
2007-03-12 17:49                       ` Cyrill Gorcunov
2007-03-17 14:38                       ` Cyrill Gorcunov
2007-03-18 16:12                       ` Roman Zippel
     [not found] <7X9Ep-6Iu-1@gated-at.bofh.it>
     [not found] ` <7XcsC-2Iz-3@gated-at.bofh.it>
     [not found]   ` <7XcCq-2VQ-15@gated-at.bofh.it>
     [not found]     ` <7Xd5o-3wR-15@gated-at.bofh.it>
     [not found]       ` <7Xd5o-3wR-13@gated-at.bofh.it>
     [not found]         ` <7Xe1t-52k-11@gated-at.bofh.it>
     [not found]           ` <7XeE6-67b-1@gated-at.bofh.it>
     [not found]             ` <7XhiJ-1UJ-15@gated-at.bofh.it>
     [not found]               ` <7Xhsk-26S-9@gated-at.bofh.it>
     [not found]                 ` <7Xiy3-3MW-17@gated-at.bofh.it>
2007-03-11  5:21                   ` Bodo Eggert
2007-03-11  7:50                     ` Cyrill Gorcunov

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=20070310160614.GB10230@cvg \
    --to=gorcunov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=snigga@mail.ru \
    --cc=zippel@linux-m68k.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