public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* "menu" versus "menuconfig" -- they're *both* a bad idea
@ 2007-04-11  7:58 Robert P. J. Day
  2007-04-11  9:06 ` Jan Engelhardt
  0 siblings, 1 reply; 11+ messages in thread
From: Robert P. J. Day @ 2007-04-11  7:58 UTC (permalink / raw)
  To: Linux Kernel Mailing List


  i can still remember the days when *i* was pushing for the idea of
using "menuconfig" instead of "menu" more in the config menus, but
i've finally realized they're *both* badly designed for what jan is
trying to do here.

  the best example of why "menuconfig" is a mess is in the menu entry
for:

  General setup
    [ ] Configure standard kernel features (for small systems)  --->

note how, even if you don't choose to configure features for small
systems, if you go under that menu entry, you're still presented with
a couple config options related to kallsyms.  that's simply wrong.
it's hideously non-intuitive to explicitly not select a top-level
choice, only to learn that there still exist selectable sub-choices.

  and the Kconfig structure defining that is also overly messy:

===========================
menuconfig EMBEDDED
	bool "Configure standard kernel features (for small systems)"
	...
===========================

  first, for submenu entries to show up if you select features for
"small systems," you need to tack "if EMBEDDED" onto every prompt,

...
bool "Sysctl syscall support" if EMBEDDED
bool "Load all symbols for debugging/ksymoops" if EMBEDDED
bool "Support for hot-pluggable devices" if EMBEDDED
...

and so on, which gets annoyingly repetitive after a while.

  worse, you have options that don't even depend on the menu that
they're a sub-entry for, as in:

...
config KALLSYMS_ALL
        bool "Include all symbols in kallsyms"
        depends on DEBUG_KERNEL && KALLSYMS
...

  what is really needed here is a new Kconfig structure, perhaps
called "selectablemenuconfig" (or something not quite so verbose),
which would, in one fell swoop:

1) be singly-clickable to activate or de-activate an entire submenu
and possibly further submenus, and

2) make all of those submenu entries *automatically* depend on the
config option that represents the submenu.

  at the moment, you can do pretty much the same thing with
"menuconfig" but it's downright messy.  rather than make all these
"menuconfig" changes right now, i would prefer to see a cleaner
structure introduced that does most of that work under the hood.

rday
--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

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

end of thread, other threads:[~2007-04-12 18:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-11  7:58 "menu" versus "menuconfig" -- they're *both* a bad idea Robert P. J. Day
2007-04-11  9:06 ` Jan Engelhardt
2007-04-11  9:25   ` Robert P. J. Day
2007-04-11  9:35     ` Jan Engelhardt
2007-04-11  9:47       ` Robert P. J. Day
2007-04-11 15:43         ` Jan Engelhardt
2007-04-11 16:00           ` Robert P. J. Day
2007-04-12  1:01     ` Carlo Florendo
2007-04-12  7:24       ` DervishD
2007-04-12 15:21       ` Robert P. J. Day
2007-04-12 18:54         ` Stefan Richter

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