* Kconfig with multiple sources of integer value
@ 2010-01-11 8:30 Ben Dooks
2010-01-18 12:57 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2010-01-11 8:30 UTC (permalink / raw)
To: linux-kernel, linux-kbuild
I have a situation (and possibly some more) where having the ability
for multiple options to affect an integer value, in this case ensuring
a minimum value.
currently we have the following:
config S3C24XX_GPIO_EXTRA
int
default 128 if S3C24XX_GPIO_EXTRA128
default 64 if S3C24XX_GPIO_EXTRA64
default 0
and various machines select S3C24XX_GPIO_EXTRA64 or S3C24XX_GPIO_EXTR128
such as:
config MACH_OSIRIS
...
select S3C24XX_GPIO_EXTRA128
It would be nice if I could say
config S3C24XX_GPIO_EXTRA
and then
config MACH_OSIRIS
...
set_min S3C24XX_GPIO_EXTRA 128
or something similar.
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Kconfig with multiple sources of integer value
2010-01-11 8:30 Kconfig with multiple sources of integer value Ben Dooks
@ 2010-01-18 12:57 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2010-01-18 12:57 UTC (permalink / raw)
To: Ben Dooks; +Cc: linux-kernel, linux-kbuild
On 11.1.2010 09:30, Ben Dooks wrote:
> It would be nice if I could say
>
> config S3C24XX_GPIO_EXTRA
>
> and then
>
> config MACH_OSIRIS
> ...
> set_min S3C24XX_GPIO_EXTRA 128
>
> or something similar.
Or maybe extend 'select' to accept
select FOO=<value>
and allow select for integer options too (in which case, the =<value>
would be mandatory). Then it would look like
config MACH_OSIRIS
...
select S3C24XX_GPIO_EXTRA=128
What do you think?
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-18 12:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 8:30 Kconfig with multiple sources of integer value Ben Dooks
2010-01-18 12:57 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).