kconfig: add named choice group
authorRoman Zippel <zippel@linux-m68k.org>
Fri, 29 Feb 2008 04:11:50 +0000 (05:11 +0100)
committerChromeBot <chrome-bot@google.com>
Tue, 14 May 2013 00:18:52 +0000 (17:18 -0700)
commit440f12784ae36c8d60e0680c54fabbfced85a062
treecbcfeebbaa4fbd88e6badffa054c8f57d370a498
parentd718170e78bb05362f1f1d9284b8908080ac4790
kconfig: add named choice group

As choice dependency are now fully checked, it's quite easy to add support
for named choices. This lifts the restriction that a choice value can only
appear once, although it still has to be within the same group,
but multiple choices can be joined by giving them a name.
While at it I cleaned up a little the choice type logic to simplify it a
bit.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
=======

Cherry-picked from the Linux kernel.

BUG=None
TEST=Built for Pit, Link, Fox.
BRANCH=None

Change-Id: I3b03b9992094d0a21fb768597e0afddd664e946d
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/51056
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Commit-Queue: Gabe Black <gabeblack@chromium.org>
Tested-by: Gabe Black <gabeblack@chromium.org>
util/kconfig/lex.zconf.c_shipped
util/kconfig/lkc_proto.h
util/kconfig/menu.c
util/kconfig/symbol.c
util/kconfig/zconf.tab.c_shipped
util/kconfig/zconf.y