From: Ulf Magnusson <ulfalizer@gmail.com>
To: linux-kbuild@vger.kernel.org
Cc: yamada.masahiro@socionext.com, sam@ravnborg.org,
linux-kernel@vger.kernel.org, Ulf Magnusson <ulfalizer@gmail.com>
Subject: [PATCH 2/2] kconfig: Improve auto. menu documentation accuracy
Date: Sun, 14 Jan 2018 12:38:20 +0100 [thread overview]
Message-ID: <20180114113820.19017-2-ulfalizer@gmail.com> (raw)
In-Reply-To: <20180114113820.19017-1-ulfalizer@gmail.com>
An 'if', 'menu', or 'choice' that depends on a preceding symbol will
also generate a submenu.
No functional changes. Only comments updated.
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
| 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
--git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index 1f7bcceacde3..86031dc36f7d 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -414,9 +414,10 @@ void menu_finalize(struct menu *parent)
menu_finalize(menu);
} else if (sym) {
/*
- * Automatic submenu creation. If sym, A, B, C, ..., are
- * consecutive symbols and A, B, C, ... all depend on sym, the
- * following menu structure will be created:
+ * Automatic submenu creation. If sym is a symbol and A, B, C,
+ * ... are consecutive items (symbols, menus, ifs, etc.) that
+ * all depend on sym, then the following menu structure is
+ * created:
*
* sym
* +-A
@@ -425,7 +426,7 @@ void menu_finalize(struct menu *parent)
* ...
*
* This also works recursively, giving the following structure
- * if B depends on A:
+ * if A is a symbol and B depends on A:
*
* sym
* +-A
--
2.14.1
next prev parent reply other threads:[~2018-01-14 11:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-14 11:33 [PATCH 0/2] kconfig: 'if' and automatic submenu creation documentation Ulf Magnusson
2018-01-14 11:33 ` [PATCH 1/2] kconfig: Document 'if' flattening logic Ulf Magnusson
2018-01-14 11:38 ` Ulf Magnusson
2018-01-14 11:38 ` Ulf Magnusson [this message]
2018-01-18 13:54 ` [PATCH 2/2] kconfig: Improve auto. menu documentation accuracy Masahiro Yamada
2018-01-14 14:49 ` [PATCH v2 1/2] kconfig: Document 'if' flattening logic Ulf Magnusson
2018-01-21 16:47 ` Masahiro Yamada
2018-01-14 21:00 ` [PATCH 0/2] kconfig: 'if' and automatic submenu creation documentation Sam Ravnborg
2018-01-15 11:00 ` Ulf Magnusson
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=20180114113820.19017-2-ulfalizer@gmail.com \
--to=ulfalizer@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=yamada.masahiro@socionext.com \
/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