mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.5 kconfig doesn't handle "&& m" correctly
@ 2002-11-21  8:39 Adrian Bunk
  2002-11-21 12:57 ` Roman Zippel
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2002-11-21  8:39 UTC (permalink / raw)
  To: Roman Zippel; +Cc: linux-kernel

Hi Roman,

while looking for the reason for a compile error in 2.5.48 I noticed the
following that seems to be a bug in the new kconfig:

The following is with a .config that was generated using
"make oldconfig":

<--  snip  -->

$ grep SOUND_WAVEFRONT .config
CONFIG_SOUND_WAVEFRONT=y
$ 

<--  snip  -->


sound/oss/Kconfig contains the following:

<--  snip  -->

...
config SOUND_WAVEFRONT
	tristate "Full support for Turtle Beach WaveFront (Tropez Plus, Tropez, Maui) synth/soundcards"
	depends on SOUND_OSS && m
...

<--  snip  -->


It seems the "&& m" (a common way to ensure that something can only be
built modular) isn't handled correctly.


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.5 kconfig doesn't handle "&& m" correctly
  2002-11-21  8:39 2.5 kconfig doesn't handle "&& m" correctly Adrian Bunk
@ 2002-11-21 12:57 ` Roman Zippel
  2002-11-21 13:24   ` Adrian Bunk
  0 siblings, 1 reply; 4+ messages in thread
From: Roman Zippel @ 2002-11-21 12:57 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

Hi,

On Thu, 21 Nov 2002, Adrian Bunk wrote:

> config SOUND_WAVEFRONT
> 	tristate "Full support for Turtle Beach WaveFront (Tropez Plus, Tropez, Maui) synth/soundcards"
> 	depends on SOUND_OSS && m
> ...
> 
> <--  snip  -->
> 
> 
> It seems the "&& m" (a common way to ensure that something can only be
> built modular) isn't handled correctly.

Did you disable modules? When modules are disabled tristate symbols are 
treated like booleans, that means they are visible if the dependencies are 
different than 'n'. For this it should be possible to automatically add 
'&& MODULES' if the parser sees a 'm'. I'll have to check this out.

bye, Roman


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.5 kconfig doesn't handle "&& m" correctly
  2002-11-21 12:57 ` Roman Zippel
@ 2002-11-21 13:24   ` Adrian Bunk
  2002-11-21 16:38     ` Roman Zippel
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2002-11-21 13:24 UTC (permalink / raw)
  To: Roman Zippel; +Cc: linux-kernel

On Thu, Nov 21, 2002 at 01:57:30PM +0100, Roman Zippel wrote:

> Hi,

Hi Roman,

> On Thu, 21 Nov 2002, Adrian Bunk wrote:
> 
> > config SOUND_WAVEFRONT
> > 	tristate "Full support for Turtle Beach WaveFront (Tropez Plus, Tropez, Maui) synth/soundcards"
> > 	depends on SOUND_OSS && m
> > ...
> > 
> > <--  snip  -->
> > 
> > 
> > It seems the "&& m" (a common way to ensure that something can only be
> > built modular) isn't handled correctly.
> 
> Did you disable modules? When modules are disabled tristate symbols are 

yes, this was with a .config without modules support.

> treated like booleans, that means they are visible if the dependencies are 
> different than 'n'. For this it should be possible to automatically add 
> '&& MODULES' if the parser sees a 'm'. I'll have to check this out.

My first thought is that this sounds like a workaround. Is there a good
reason not to restore the semantics of the old kconfig that interpreted
dependencies as a restriction of the input range?

> bye, Roman

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 2.5 kconfig doesn't handle "&& m" correctly
  2002-11-21 13:24   ` Adrian Bunk
@ 2002-11-21 16:38     ` Roman Zippel
  0 siblings, 0 replies; 4+ messages in thread
From: Roman Zippel @ 2002-11-21 16:38 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

Hi,

On Thu, 21 Nov 2002, Adrian Bunk wrote:

> > treated like booleans, that means they are visible if the dependencies are 
> > different than 'n'. For this it should be possible to automatically add 
> > '&& MODULES' if the parser sees a 'm'. I'll have to check this out.
> 
> My first thought is that this sounds like a workaround. Is there a good
> reason not to restore the semantics of the old kconfig that interpreted
> dependencies as a restriction of the input range?

It still does mostly, that's one case I missed. The old config had more 
than one semantic regarding visible input range (the shell 'if' semantic 
and the dep_* dependencies, which differed again between the commands), 
kconfig has only one. So it's not matter of restoring semantics, but 
translating them correctly. In general a symbol is now visibile is if the 
dependencies are !='n', "restoring" would mean to change this into ='y' 
only for tristate symbols when MODULES='n', this would be an even larger 
hack. Translating 'm' into 'm && MODULES' is the cleaner solution, as it 
doesn't change the base kconfig logic.

bye, Roman


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-21 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21  8:39 2.5 kconfig doesn't handle "&& m" correctly Adrian Bunk
2002-11-21 12:57 ` Roman Zippel
2002-11-21 13:24   ` Adrian Bunk
2002-11-21 16:38     ` Roman Zippel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®