From: Ben Dooks <ben-linux@fluff.org>
To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Subject: Kconfig with multiple sources of integer value
Date: Mon, 11 Jan 2010 08:30:02 +0000 [thread overview]
Message-ID: <20100111083002.GA24987@trinity.fluff.org> (raw)
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.
next reply other threads:[~2010-01-11 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 8:30 Ben Dooks [this message]
2010-01-18 12:57 ` Kconfig with multiple sources of integer value Michal Marek
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=20100111083002.GA24987@trinity.fluff.org \
--to=ben-linux@fluff.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).