All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/POC] multiple CONFIG y/m/n
@ 2006-04-07  5:41 Randy.Dunlap
  2006-04-07 15:04 ` OGAWA Hirofumi
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Randy.Dunlap @ 2006-04-07  5:41 UTC (permalink / raw)
  To: lkml; +Cc: zippel


In doing lots of kernel build testing, I often want to enable all options
in a sub-menu and their sub-sub-menus.  Sound is one of the worst^W longest
of these, so I chose a shorter (easier) one to practice on:  parport.

For PARPORT, this isn't terribly needed; it's just being a guinea pig
for me.  The point is to be able to enable all applicable options at
one time (one line or one click).

So if no (top-level of a CONFIG, like CONFIG_PARPORT) options are enabled,
you can step thru the entire menu and sub-menus, taking a few minutes
sometimes (see SOUND or USB), or the kconfig system could enable some
way to do this for us.  For version 1, all that I have done is modify
driver/parport/Kconfig -- no code changes.  I haven't even looked at the
source code to see if that would be the right thing to do.  I'm just
taken liberties with the famous Kconfig "select" to make it work.

I can already see that I find this useful, but is there a good (better)
way to implement this in kconfig?

As it is here, PARPORT_ENABLE_ALL tracks PARPORT (y/m/n) when the former
is enabled/configured.  The downside of this Kconfig usage is that almost
all lines of "depends" are duplicated as "select" (and that it uses "select").
It would be good if there was some way to automate this.

Comments?
---
~Randy


---
 drivers/parport/Kconfig |   17 +++++++++++++++++
 1 files changed, 17 insertions(+)

--- linux-2617-rc1.orig/drivers/parport/Kconfig
+++ linux-2617-rc1/drivers/parport/Kconfig
@@ -151,5 +151,22 @@ config PARPORT_1284
 	  transfer modes. Also say Y if you want device ID information to
 	  appear in /proc/sys/dev/parport/*/autoprobe*. It is safe to say N.
 
+config PARPORT_ENABLE_ALL
+	tristate "Enable all (non-BROKEN) PARPORT options"
+	depends on PARPORT
+	select PARPORT_PC if (!SPARC64 || PCI) && !SPARC32 && !M32R && !FRV
+	select PARPORT_SERIAL if SERIAL_8250 && PARPORT_PC && PCI
+	select PARPORT_PC_FIFO if PARPORT_PC && EXPERIMENTAL
+	select PARPORT_PC_SUPERIO if PARPORT_PC && EXPERIMENTAL
+	select PARPORT_PC_PCMCIA if PCMCIA && PARPORT_PC
+	select PARPORT_ARC if ARM && PARPORT
+	select PARPORT_IP32 if SGI_IP32 && PARPORT && EXPERIMENTAL
+	select PARPORT_AMIGA if AMIGA && PARPORT
+	select PARPORT_MFC3 if ZORRO && PARPORT
+	select PARPORT_ATARI if ATARI && PARPORT
+	select PARPORT_GSC if PARPORT && GSC
+	select PARPORT_SUNBPP if SBUS && PARPORT && EXPERIMENTAL
+	select PARPORT_1284 if PARPORT
+
 endmenu
 

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

end of thread, other threads:[~2006-04-12 20:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07  5:41 [RFC/POC] multiple CONFIG y/m/n Randy.Dunlap
2006-04-07 15:04 ` OGAWA Hirofumi
2006-04-07 15:45   ` Randy.Dunlap
2006-04-10  5:04   ` Randy.Dunlap
2006-04-12 11:00     ` Roman Zippel
2006-04-12 16:17       ` Randy.Dunlap
2006-04-12 16:59         ` Sam Ravnborg
2006-04-12 18:56           ` [PATCH] config: update usage/help info Randy.Dunlap
2006-04-12 20:44             ` Sam Ravnborg
2006-04-07 18:44 ` [RFC/POC] multiple CONFIG y/m/n Sam Ravnborg
2006-04-07 21:24   ` Roman Zippel
2006-04-07 21:36     ` Randy.Dunlap
2006-04-11 11:05 ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.