public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bug or feature?
@ 2001-08-27 22:10 Ricky Beam
  2001-08-27 22:17 ` Alan Cox
  2001-08-27 23:14 ` Keith Owens
  0 siblings, 2 replies; 3+ messages in thread
From: Ricky Beam @ 2001-08-27 22:10 UTC (permalink / raw)
  To: Linux Kernel Mail List

In my dangerous mode of "if it's presented to me, compile it", I've noticed
alot of junk being presented as a buildable option under the wrong arch.

For example, the Sparc64 and ARM MTD Map drivers are selectable from an
x86 build.  Some might say this is a shell bug, but at any rate, dep_*
don't function correctly (read: as one would expect) in the cases where
the deps are not defined.

For:
  dep_tristate '  Sun Microsystems userflash support' CONFIG_MTD_SUN_UFLASH $CONFIG_SPARC64
$CONFIG_SPARC64 is null and this doesn't appear to the shell function as an
arg.  Thus, it's presented as a selectable (tho' not compilable) option.

The same is visable for CONFIG_MTD_SA1100 and CONFIG_MTD_DC21285 (ARM).

Options:
 1) Don't select things that aren't in your machine/arch.
    (Translation: "Live with it.")
 2) Quote all the options.
    (ewww.)
 3) Fix the function(s).

--Ricky



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

* Re: Bug or feature?
  2001-08-27 22:10 Bug or feature? Ricky Beam
@ 2001-08-27 22:17 ` Alan Cox
  2001-08-27 23:14 ` Keith Owens
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-08-27 22:17 UTC (permalink / raw)
  To: Ricky Beam; +Cc: Linux Kernel Mail List

>   dep_tristate '  Sun Microsystems userflash support' CONFIG_MTD_SUN_UFLASH $CONFIG_SPARC64
> $CONFIG_SPARC64 is null and this doesn't appear to the shell function as an
> arg.  Thus, it's presented as a selectable (tho' not compilable) option.

In -ac these should have been fixed for a while. I'm waiting for David
Woodhouse to send me his official versions of these fixes

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

* Re: Bug or feature?
  2001-08-27 22:10 Bug or feature? Ricky Beam
  2001-08-27 22:17 ` Alan Cox
@ 2001-08-27 23:14 ` Keith Owens
  1 sibling, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-08-27 23:14 UTC (permalink / raw)
  To: Ricky Beam; +Cc: Linux Kernel Mail List

On Mon, 27 Aug 2001 18:10:05 -0400 (EDT), 
Ricky Beam <jfbeam@bluetopia.net> wrote:
>  dep_tristate '  Sun Microsystems userflash support' CONFIG_MTD_SUN_UFLASH $CONFIG_SPARC64
>$CONFIG_SPARC64 is null and this doesn't appear to the shell function as an
>arg.  Thus, it's presented as a selectable (tho' not compilable) option.
>
>The same is visable for CONFIG_MTD_SA1100 and CONFIG_MTD_DC21285 (ARM).
>
>Options:
> 1) Don't select things that aren't in your machine/arch.
>    (Translation: "Live with it.")
> 2) Quote all the options.
>    (ewww.)
> 3) Fix the function(s).

None of the above.  Null config variables are treated as "don't care"
when the user really meant "only allow if this option is 'y'".  It is a
generic config problem with arch variables and I have a fix somewhere
in my backlog.  I will try to dig it out and send to AC.


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

end of thread, other threads:[~2001-08-27 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-27 22:10 Bug or feature? Ricky Beam
2001-08-27 22:17 ` Alan Cox
2001-08-27 23:14 ` Keith Owens

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