public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: Ingo Molnar <mingo@elte.hu>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	kiran@scalemp.com, shai@scalemp.com,
	Glauber Costa <gcosta@redhat.com>,
	linux-kbuild <linux-kbuild@vger.kernel.org>,
	Yinghai Lu <Yinghai.Lu@Sun.COM>
Subject: Kconfig configuration restore bug [Was: x86: vSMP selection in config]
Date: Tue, 26 Feb 2008 20:40:58 +0100	[thread overview]
Message-ID: <20080226194058.GA31438@uranus.ravnborg.org> (raw)
In-Reply-To: <200802242243.49576.yinghai.lu@sun.com>

Hi Roman.

We discovered a situation where we could set a
choice value in menuconfig but later when we either was
running menuconfig or oldconfig the value were changed.

I have created a minimal config that exhibit the error.
It was created in a pure mechanical trial-and-error fashion.

First the minimal Kconfig file:
# x86 configuration

choice
	prompt "Subarchitecture Type"

config X86_PC
	bool "PC-compatible"

config X86_VOYAGER
	bool "Voyager (NCR)"

config X86_VSMP
	bool "Support for ScaleMP vSMP"
	depends on PCI

endchoice

config PCI
	bool "PCI support" if !X86_VISWS
	depends on !X86_VOYAGER
	default y
	

config USB_ARCH_HAS_HCD
	bool
	default PCI

config USB
	bool "Support for Host-side USB"
	depends on USB_ARCH_HAS_HCD

config USB_PHIDGET
	bool "USB Phidgets drivers"
	depends on USB

config USB_PHIDGETMOTORCONTROL
	bool "USB PhidgetMotorControl support"
	depends on USB_PHIDGET



Next the saved .config that is used:
#
# Automatically generated make config: don't edit
# Linux kernel version: KERNELVERSION
# Tue Feb 26 20:27:09 2008
#
# CONFIG_X86_PC is not set
# CONFIG_X86_VOYAGER is not set
CONFIG_X86_VSMP=y
CONFIG_PCI=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
# CONFIG_USB_PHIDGET is not set

When we enter menuconfig or are running oldconfig then we can see
that CONFIG_X86_PC is set to 'y' and CONFIG_X86_VSMP is set to 'n'.

If I in menuconfig select VSMP this setting is saved but then
oldconfig kicks in and we loose the setting again.

If I delete any of the config variables in the sample above then
we no longer change the values and we keep the VSMP equals 'y'.


Can you please take a look at this.

Thanks,
	Sam

       reply	other threads:[~2008-02-26 19:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200802210258.45011.yinghai.lu@sun.com>
     [not found] ` <200802241832.37850.yinghai.lu@sun.com>
     [not found]   ` <200802242136.28744.yinghai.lu@sun.com>
     [not found]     ` <200802242243.49576.yinghai.lu@sun.com>
2008-02-26 19:40       ` Sam Ravnborg [this message]
2008-02-27  2:59         ` Kconfig configuration restore bug [Was: x86: vSMP selection in config] Roman Zippel
2008-02-29  4:09         ` [PATCH 1/3] fix recursive dependencies Roman Zippel
2008-02-29  5:05           ` Yinghai Lu
2008-02-29 13:22             ` Roman Zippel
2008-02-29 17:40               ` Sam Ravnborg
2008-02-29 20:05                 ` Ingo Molnar
2008-02-29 20:04           ` Ingo Molnar
2008-02-29  4:10         ` [PATCH 2/3] fix choice dependency check Roman Zippel
2008-04-28 21:08           ` Sam Ravnborg
2008-02-29  4:11         ` [PATCH 3/3] add named choice group 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=20080226194058.GA31438@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=Yinghai.Lu@Sun.COM \
    --cc=akpm@linux-foundation.org \
    --cc=gcosta@redhat.com \
    --cc=kiran@scalemp.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=shai@scalemp.com \
    --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