kbuild question -- make sure at least one config choice is selected?

2008-01-23 Thread Kumar Gala

Roman,

I know this has come up before, but wasn't sure if any recent  
enhancements to Kconfig have resolved this issue.


We have a set of board choices in PPC land that are 'config' options.   
We want to make sure the user selects at least one of them (or force  
at least one of them to be selected).  Is there a way to do that?


thanks

- k
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


kbuild question -- make sure at least one config choice is selected?

2008-01-23 Thread Kumar Gala

Roman,

I know this has come up before, but wasn't sure if any recent  
enhancements to Kconfig have resolved this issue.


We have a set of board choices in PPC land that are 'config' options.   
We want to make sure the user selects at least one of them (or force  
at least one of them to be selected).  Is there a way to do that?


thanks

- k
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-03-15 Thread Kumar Gala


On Feb 18, 2007, at 1:25 PM, Sam Ravnborg wrote:



Sure, on powerpc for some of the embedded sub-architectures you  
can only
select a single board to build for.  For a lot of people this is  
sufficient,
however we are moving towards a world where you can easily build  
in support

for multiple boards into a single kernel.

I'd like to have it such that if I'm only building support for  
one board
(CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this  
discussion its
sufficient), you get a choice menu from Kconfig enforcing the  
ability to only
select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can  
select

multiple boards to build into your kernel.

if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime  
checks that get

added for handling the multiple board case.


On m68k we have the same problem, but what I'm what I'm  
considering is to

add a new mode for choice groups - at least one must be selected and
kconfig generates the extra information if only one is selected.


How about extendign the current 'option' syntax to do this?
So we could do something like:

choice
prompt "choice prompt"
default VAL_FIRST
option multivalue if !CONFIG_ONLY_HAVE_ONE

config VAL_FIRST
bool "first"

config VAL_SECOND
bool "second"

endchoice

It seems to fit well with how option is used today, and extends  
current

syntax nicely.


This works for me, however I dont have the first clue about hacking  
on kconfig code.


I'm happy to test out a patch if one of you guys wouldn't mind  
working something up.. or point me and what I should look at to do this.


- k
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-03-15 Thread Kumar Gala


On Feb 18, 2007, at 1:25 PM, Sam Ravnborg wrote:



Sure, on powerpc for some of the embedded sub-architectures you  
can only
select a single board to build for.  For a lot of people this is  
sufficient,
however we are moving towards a world where you can easily build  
in support

for multiple boards into a single kernel.

I'd like to have it such that if I'm only building support for  
one board
(CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this  
discussion its
sufficient), you get a choice menu from Kconfig enforcing the  
ability to only
select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can  
select

multiple boards to build into your kernel.

if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime  
checks that get

added for handling the multiple board case.


On m68k we have the same problem, but what I'm what I'm  
considering is to

add a new mode for choice groups - at least one must be selected and
kconfig generates the extra information if only one is selected.


How about extendign the current 'option' syntax to do this?
So we could do something like:

choice
prompt choice prompt
default VAL_FIRST
option multivalue if !CONFIG_ONLY_HAVE_ONE

config VAL_FIRST
bool first

config VAL_SECOND
bool second

endchoice

It seems to fit well with how option is used today, and extends  
current

syntax nicely.


This works for me, however I dont have the first clue about hacking  
on kconfig code.


I'm happy to test out a patch if one of you guys wouldn't mind  
working something up.. or point me and what I should look at to do this.


- k
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-18 Thread Sam Ravnborg
> > 
> > Sure, on powerpc for some of the embedded sub-architectures you can only
> > select a single board to build for.  For a lot of people this is sufficient,
> > however we are moving towards a world where you can easily build in support
> > for multiple boards into a single kernel.
> > 
> > I'd like to have it such that if I'm only building support for one board
> > (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this discussion 
> > its
> > sufficient), you get a choice menu from Kconfig enforcing the ability to 
> > only
> > select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can select
> > multiple boards to build into your kernel.
> > 
> > if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks that 
> > get
> > added for handling the multiple board case.
> 
> On m68k we have the same problem, but what I'm what I'm considering is to 
> add a new mode for choice groups - at least one must be selected and 
> kconfig generates the extra information if only one is selected.

How about extendign the current 'option' syntax to do this?
So we could do something like:

choice
prompt "choice prompt"
default VAL_FIRST
option multivalue if !CONFIG_ONLY_HAVE_ONE

config VAL_FIRST
bool "first"

config VAL_SECOND
bool "second"

endchoice

It seems to fit well with how option is used today, and extends current
syntax nicely.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-18 Thread Roman Zippel
Hi,

On Fri, 16 Feb 2007, Kumar Gala wrote:

> > Could you please be more specific about the problem you're trying to
> > solve, instead of how you're trying to solve it?
> > A real example would help a lot to understand the actual problem.
> 
> Sure, on powerpc for some of the embedded sub-architectures you can only
> select a single board to build for.  For a lot of people this is sufficient,
> however we are moving towards a world where you can easily build in support
> for multiple boards into a single kernel.
> 
> I'd like to have it such that if I'm only building support for one board
> (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this discussion its
> sufficient), you get a choice menu from Kconfig enforcing the ability to only
> select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can select
> multiple boards to build into your kernel.
> 
> if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks that get
> added for handling the multiple board case.

On m68k we have the same problem, but what I'm what I'm considering is to 
add a new mode for choice groups - at least one must be selected and 
kconfig generates the extra information if only one is selected.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-18 Thread Roman Zippel
Hi,

On Fri, 16 Feb 2007, Kumar Gala wrote:

  Could you please be more specific about the problem you're trying to
  solve, instead of how you're trying to solve it?
  A real example would help a lot to understand the actual problem.
 
 Sure, on powerpc for some of the embedded sub-architectures you can only
 select a single board to build for.  For a lot of people this is sufficient,
 however we are moving towards a world where you can easily build in support
 for multiple boards into a single kernel.
 
 I'd like to have it such that if I'm only building support for one board
 (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this discussion its
 sufficient), you get a choice menu from Kconfig enforcing the ability to only
 select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can select
 multiple boards to build into your kernel.
 
 if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks that get
 added for handling the multiple board case.

On m68k we have the same problem, but what I'm what I'm considering is to 
add a new mode for choice groups - at least one must be selected and 
kconfig generates the extra information if only one is selected.

bye, Roman
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-18 Thread Sam Ravnborg
  
  Sure, on powerpc for some of the embedded sub-architectures you can only
  select a single board to build for.  For a lot of people this is sufficient,
  however we are moving towards a world where you can easily build in support
  for multiple boards into a single kernel.
  
  I'd like to have it such that if I'm only building support for one board
  (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this discussion 
  its
  sufficient), you get a choice menu from Kconfig enforcing the ability to 
  only
  select one board.  However if !CONFIG_ONLY_HAVE_ONE than you can select
  multiple boards to build into your kernel.
  
  if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks that 
  get
  added for handling the multiple board case.
 
 On m68k we have the same problem, but what I'm what I'm considering is to 
 add a new mode for choice groups - at least one must be selected and 
 kconfig generates the extra information if only one is selected.

How about extendign the current 'option' syntax to do this?
So we could do something like:

choice
prompt choice prompt
default VAL_FIRST
option multivalue if !CONFIG_ONLY_HAVE_ONE

config VAL_FIRST
bool first

config VAL_SECOND
bool second

endchoice

It seems to fit well with how option is used today, and extends current
syntax nicely.

Sam
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Kumar Gala


On Feb 16, 2007, at 4:23 AM, Roman Zippel wrote:


Hi,

On Thu, 15 Feb 2007, Kumar Gala wrote:

I was wondering if there was some way to make a Kconfig menu  
either be just a

menu or a choice depending on another bool being set or not.

What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
want it so
you can only select on option, however if CONFIG_ONLY_HAVE_ONE is  
not set you

should be able to select multiple options.


Could you please be more specific about the problem you're trying to
solve, instead of how you're trying to solve it?
A real example would help a lot to understand the actual problem.


Sure, on powerpc for some of the embedded sub-architectures you can  
only select a single board to build for.  For a lot of people this is  
sufficient, however we are moving towards a world where you can  
easily build in support for multiple boards into a single kernel.


I'd like to have it such that if I'm only building support for one  
board (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this  
discussion its sufficient), you get a choice menu from Kconfig  
enforcing the ability to only select one board.  However if ! 
CONFIG_ONLY_HAVE_ONE than you can select multiple boards to build  
into your kernel.


if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks  
that get added for handling the multiple board case.


Hopefully that's clear.

- k
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Roman Zippel
Hi,

On Thu, 15 Feb 2007, Kumar Gala wrote:

> I was wondering if there was some way to make a Kconfig menu either be just a
> menu or a choice depending on another bool being set or not.
> 
> What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I want it so
> you can only select on option, however if CONFIG_ONLY_HAVE_ONE is not set you
> should be able to select multiple options.

Could you please be more specific about the problem you're trying to 
solve, instead of how you're trying to solve it?
A real example would help a lot to understand the actual problem.

bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Sam Ravnborg
> 
> Now is there some way to not have to duplicate the 'config choices  
> between if ONLY_HAVE_ONE and if !ONLY_HAVE_ONE
> 
> To use your example I want to do:
> 
> config ONLY_HAVE_ONE
>   prompt "only have one?"
>   boolean
> 
> if ONLY_HAVE_ONE
> config VAL_FIRST
>   bool "First value"
> 
> config VAL_SECOND
>   bool "Second value"
> endif
> 
> if !ONLY_HAVE_ONE
> choice
>   prompt "multiple values"
>   default VAL_FIRST
> 
> config VAL_FIRST
>   bool "First value"
> 
> config VAL_SECOND
>   bool "Second value"
> endchoice
> 
> endif
> 
> I'd like not to have to repeat/duplicate VAL_FIRST, VAL_SECOND, etc..

A choice allow you to select multiple values if the type of all
choice entries are of type 'tristate' but this gets enabled
only when CONFIG_MODULES equal to 'y'.
So except if you really need the 'select multiple' when MODULES
are selected I see no easy way to achive what you want.

I did not try but carefull usage of 'depends on' could also help you
but it will get messy quite fast.

Maybe Roman can se a better way?

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Sam Ravnborg
 
 Now is there some way to not have to duplicate the 'config choices  
 between if ONLY_HAVE_ONE and if !ONLY_HAVE_ONE
 
 To use your example I want to do:
 
 config ONLY_HAVE_ONE
   prompt only have one?
   boolean
 
 if ONLY_HAVE_ONE
 config VAL_FIRST
   bool First value
 
 config VAL_SECOND
   bool Second value
 endif
 
 if !ONLY_HAVE_ONE
 choice
   prompt multiple values
   default VAL_FIRST
 
 config VAL_FIRST
   bool First value
 
 config VAL_SECOND
   bool Second value
 endchoice
 
 endif
 
 I'd like not to have to repeat/duplicate VAL_FIRST, VAL_SECOND, etc..

A choice allow you to select multiple values if the type of all
choice entries are of type 'tristate' but this gets enabled
only when CONFIG_MODULES equal to 'y'.
So except if you really need the 'select multiple' when MODULES
are selected I see no easy way to achive what you want.

I did not try but carefull usage of 'depends on' could also help you
but it will get messy quite fast.

Maybe Roman can se a better way?

Sam
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Roman Zippel
Hi,

On Thu, 15 Feb 2007, Kumar Gala wrote:

 I was wondering if there was some way to make a Kconfig menu either be just a
 menu or a choice depending on another bool being set or not.
 
 What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I want it so
 you can only select on option, however if CONFIG_ONLY_HAVE_ONE is not set you
 should be able to select multiple options.

Could you please be more specific about the problem you're trying to 
solve, instead of how you're trying to solve it?
A real example would help a lot to understand the actual problem.

bye, Roman
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-16 Thread Kumar Gala


On Feb 16, 2007, at 4:23 AM, Roman Zippel wrote:


Hi,

On Thu, 15 Feb 2007, Kumar Gala wrote:

I was wondering if there was some way to make a Kconfig menu  
either be just a

menu or a choice depending on another bool being set or not.

What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
want it so
you can only select on option, however if CONFIG_ONLY_HAVE_ONE is  
not set you

should be able to select multiple options.


Could you please be more specific about the problem you're trying to
solve, instead of how you're trying to solve it?
A real example would help a lot to understand the actual problem.


Sure, on powerpc for some of the embedded sub-architectures you can  
only select a single board to build for.  For a lot of people this is  
sufficient, however we are moving towards a world where you can  
easily build in support for multiple boards into a single kernel.


I'd like to have it such that if I'm only building support for one  
board (CONFIG_ONLY_HAVE_ONE, not going to call it that, but for this  
discussion its sufficient), you get a choice menu from Kconfig  
enforcing the ability to only select one board.  However if ! 
CONFIG_ONLY_HAVE_ONE than you can select multiple boards to build  
into your kernel.


if CONFIG_ONLY_HAVE_ONE is set we can optimize out the runtime checks  
that get added for handling the multiple board case.


Hopefully that's clear.

- k
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-15 Thread Kumar Gala


On Feb 15, 2007, at 4:33 PM, Sam Ravnborg wrote:


On Thu, Feb 15, 2007 at 01:18:52PM -0600, Kumar Gala wrote:

I was wondering if there was some way to make a Kconfig menu either
be just a menu or a choice depending on another bool being set or  
not.


What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I
want it so you can only select on option, however if
CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple
options.


You can do so using if.
See following example:
--
config ONLY_HAVE_ONE
prompt "only have one?"
boolean

if ONLY_HAVE_ONE
config FOO
bool foo
default y
endif

if !ONLY_HAVE_ONE
choice
prompt "multiple values"
default VAL_FIRST

config VAL_FIRST
bool "First value"

config VAL_SECOND
bool "Second value"
endchoice

endif
--

You should be able to modify this for the usage you ask for.

Hope this is useful,


It is.

Now is there some way to not have to duplicate the 'config choices  
between if ONLY_HAVE_ONE and if !ONLY_HAVE_ONE


To use your example I want to do:

config ONLY_HAVE_ONE
prompt "only have one?"
boolean

if ONLY_HAVE_ONE
config VAL_FIRST
bool "First value"

config VAL_SECOND
bool "Second value"
endif

if !ONLY_HAVE_ONE
choice
prompt "multiple values"
default VAL_FIRST

config VAL_FIRST
bool "First value"

config VAL_SECOND
bool "Second value"
endchoice

endif

I'd like not to have to repeat/duplicate VAL_FIRST, VAL_SECOND, etc..

- k
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-15 Thread Sam Ravnborg
On Thu, Feb 15, 2007 at 01:18:52PM -0600, Kumar Gala wrote:
> I was wondering if there was some way to make a Kconfig menu either  
> be just a menu or a choice depending on another bool being set or not.
> 
> What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
> want it so you can only select on option, however if  
> CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple  
> options.

You can do so using if.
See following example:
--
config ONLY_HAVE_ONE
prompt "only have one?"
boolean

if ONLY_HAVE_ONE
config FOO
bool foo
default y
endif

if !ONLY_HAVE_ONE
choice
prompt "multiple values"
default VAL_FIRST

config VAL_FIRST
bool "First value"

config VAL_SECOND
bool "Second value"
endchoice

endif
--

You should be able to modify this for the usage you ask for.

Hope this is useful,

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


kbuild question

2007-02-15 Thread Kumar Gala
I was wondering if there was some way to make a Kconfig menu either  
be just a menu or a choice depending on another bool being set or not.


What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
want it so you can only select on option, however if  
CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple  
options.


thanks

- k
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


kbuild question

2007-02-15 Thread Kumar Gala
I was wondering if there was some way to make a Kconfig menu either  
be just a menu or a choice depending on another bool being set or not.


What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
want it so you can only select on option, however if  
CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple  
options.


thanks

- k
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-15 Thread Sam Ravnborg
On Thu, Feb 15, 2007 at 01:18:52PM -0600, Kumar Gala wrote:
 I was wondering if there was some way to make a Kconfig menu either  
 be just a menu or a choice depending on another bool being set or not.
 
 What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I  
 want it so you can only select on option, however if  
 CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple  
 options.

You can do so using if.
See following example:
--
config ONLY_HAVE_ONE
prompt only have one?
boolean

if ONLY_HAVE_ONE
config FOO
bool foo
default y
endif

if !ONLY_HAVE_ONE
choice
prompt multiple values
default VAL_FIRST

config VAL_FIRST
bool First value

config VAL_SECOND
bool Second value
endchoice

endif
--

You should be able to modify this for the usage you ask for.

Hope this is useful,

Sam
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: kbuild question

2007-02-15 Thread Kumar Gala


On Feb 15, 2007, at 4:33 PM, Sam Ravnborg wrote:


On Thu, Feb 15, 2007 at 01:18:52PM -0600, Kumar Gala wrote:

I was wondering if there was some way to make a Kconfig menu either
be just a menu or a choice depending on another bool being set or  
not.


What I'm trying to accomplish is if CONFIG_ONLY_HAVE_ONE is set I
want it so you can only select on option, however if
CONFIG_ONLY_HAVE_ONE is not set you should be able to select multiple
options.


You can do so using if.
See following example:
--
config ONLY_HAVE_ONE
prompt only have one?
boolean

if ONLY_HAVE_ONE
config FOO
bool foo
default y
endif

if !ONLY_HAVE_ONE
choice
prompt multiple values
default VAL_FIRST

config VAL_FIRST
bool First value

config VAL_SECOND
bool Second value
endchoice

endif
--

You should be able to modify this for the usage you ask for.

Hope this is useful,


It is.

Now is there some way to not have to duplicate the 'config choices  
between if ONLY_HAVE_ONE and if !ONLY_HAVE_ONE


To use your example I want to do:

config ONLY_HAVE_ONE
prompt only have one?
boolean

if ONLY_HAVE_ONE
config VAL_FIRST
bool First value

config VAL_SECOND
bool Second value
endif

if !ONLY_HAVE_ONE
choice
prompt multiple values
default VAL_FIRST

config VAL_FIRST
bool First value

config VAL_SECOND
bool Second value
endchoice

endif

I'd like not to have to repeat/duplicate VAL_FIRST, VAL_SECOND, etc..

- k
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/