From: Martin Walch <walch.martin@gmx.de>
To: linux-kernel@vger.kernel.org
Cc: linux-kbuild@vger.kernel.org
Subject: Documentation of kconfig language differs from implementation regarding existence of symbols
Date: Wed, 10 Oct 2012 02:17:09 +0200 [thread overview]
Message-ID: <1940598.VZE8PFWQyj@tacticalops> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1049 bytes --]
The file linux/Documentation/kbuild/kconfig-language.txt says:
> 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.
However, I can not reproduce this. The attached file contains both cases. When
running make menuconfig, setting BAR0 and BAR1 both to n, and saving the
configuration, there is neither FOO0 nor FOO1 in the resulting configuration
file.
According to the documentation, at least FOO0 should exist, even if BAR0 is
set to n. But this is not the case. AFAICS, both versions behave equivalently.
I suggest changing the documentation accordingly.
Regards
Martin Walch
--
[-- Attachment #1.2: FOO.kconf --]
[-- Type: text/plain, Size: 187 bytes --]
config FOO0
tristate "FOO0"
depends on BAR0
config BAR0
tristate "BAR0"
config BAR1
tristate "BAR1"
if BAR1
config FOO1
tristate "FOO1"
endif
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next reply other threads:[~2012-10-10 0:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 0:17 Martin Walch [this message]
2012-10-11 20:27 ` Documentation of kconfig language differs from implementation regarding existence of symbols Michal Marek
2012-10-11 20:44 ` Yann E. MORIN
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=1940598.VZE8PFWQyj@tacticalops \
--to=walch.martin@gmx.de \
--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