public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kconfig-language: add to hints
@ 2011-04-28 17:58 Randy Dunlap
  2011-05-02 15:40 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2011-04-28 17:58 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Michal Marek

From: Randy Dunlap <randy.dunlap@oracle.com>

Explain a little about kconfig symbol dependencies and symbol
existence given optional kconfig language scenarios.
Yes, I was bitten by this.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 Documentation/kbuild/kconfig-language.txt |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)

--- lnx-2639-rc5.orig/Documentation/kbuild/kconfig-language.txt
+++ lnx-2639-rc5/Documentation/kbuild/kconfig-language.txt
@@ -381,3 +381,25 @@ config FOO
 
 limits FOO to module (=m) or disabled (=n).
 
+Kconfig symbol existence
+~~~~~~~~~~~~~~~~~~~~~~~~
+The following two methods produce the same kconfig symbol dependencies
+but differ greatly in kconfig symbol existence (production) in the
+generated config file.
+
+case 1:
+
+config FOO
+	tristate "about foo"
+	depends on BAR
+
+vs. case 2:
+
+if BAR
+config FOO
+	tristate "about foo"
+endif
+
+In case 1, the symbol FOO will always exist in the config file (given
+no other dependencies).  In case 2, the symbol FOO will only exist in
+the config file if BAR is enabled.

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

* Re: [PATCH] kconfig-language: add to hints
  2011-04-28 17:58 [PATCH] kconfig-language: add to hints Randy Dunlap
@ 2011-05-02 15:40 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2011-05-02 15:40 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kbuild

On Thu, Apr 28, 2011 at 10:58:52AM -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> Explain a little about kconfig symbol dependencies and symbol
> existence given optional kconfig language scenarios.
> Yes, I was bitten by this.

Pushed to kbuild-2.6.git#kconfig, thanks.

Michal

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

end of thread, other threads:[~2011-05-02 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 17:58 [PATCH] kconfig-language: add to hints Randy Dunlap
2011-05-02 15:40 ` Michal Marek

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