linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][RFC] drivers/Kconfig
@ 2003-09-23 15:20 Christoph Hellwig
  2003-09-23 16:02 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2003-09-23 15:20 UTC (permalink / raw)
  To: linux-kernel

What do people think about creating a common drivers/Kconfig
that includes the drivers/*/Kconfig files?  This saves quite
a few superflous Kconfig lines and is a natural way to avoid
the architectyures going out of sync.  Yes, this requires
every driver having proper bus-depencies but we should be
almost there already.

Sample patch (for ppc, i386 and x86_64) attached.  


--- 1.76/arch/i386/Kconfig	Wed Sep 10 08:41:39 2003
+++ edited/arch/i386/Kconfig	Tue Sep 23 11:42:49 2003
@@ -1175,61 +1175,14 @@
 
 endmenu
 
-source "drivers/base/Kconfig"
-
-source "drivers/mtd/Kconfig"
-
-source "drivers/parport/Kconfig"
-
-source "drivers/pnp/Kconfig"
-
-source "drivers/block/Kconfig"
-
-source "drivers/ide/Kconfig"
-
-source "drivers/scsi/Kconfig"
-
-source "drivers/cdrom/Kconfig"
-
-source "drivers/md/Kconfig"
-
-source "drivers/message/fusion/Kconfig"
-
-source "drivers/ieee1394/Kconfig"
-
-source "drivers/message/i2o/Kconfig"
-
 source "net/Kconfig"
-
 source "net/ax25/Kconfig"
-
 source "net/irda/Kconfig"
-
-source "drivers/isdn/Kconfig"
-
-source "drivers/telephony/Kconfig"
-
-#
-# input before char - char/joystick depends on it. As does USB.
-#
-source "drivers/input/Kconfig"
-
-source "drivers/char/Kconfig"
-
-#source drivers/misc/Config.in
-source "drivers/media/Kconfig"
-
-source "fs/Kconfig"
-
-source "drivers/video/Kconfig"
-
-source "sound/Kconfig"
-
-source "drivers/usb/Kconfig"
-
 source "net/bluetooth/Kconfig"
-
+source "fs/Kconfig"
 source "arch/i386/oprofile/Kconfig"
+source "drivers/Kconfig"
+source "sound/Kconfig"
 
 
 menu "Kernel hacking"
--- 1.42/arch/ppc/Kconfig	Wed Sep 17 22:31:25 2003
+++ edited/arch/ppc/Kconfig	Tue Sep 23 11:46:48 2003
@@ -1021,8 +1021,6 @@
 
 source "drivers/pcmcia/Kconfig"
 
-source "drivers/parport/Kconfig"
-
 endmenu
 
 menu "Advanced setup"
@@ -1120,39 +1118,13 @@
 	depends on ADVANCED_OPTIONS && 8xx
 endmenu
 
-source "drivers/base/Kconfig"
-
-source "drivers/mtd/Kconfig"
-
-source "drivers/pnp/Kconfig"
-
-source "drivers/block/Kconfig"
-
-source "drivers/md/Kconfig"
-
-source "drivers/ide/Kconfig"
-
-source "drivers/scsi/Kconfig"
-
-source "drivers/message/fusion/Kconfig"
-
-source "drivers/ieee1394/Kconfig"
-
-source "drivers/message/i2o/Kconfig"
-
 source "net/Kconfig"
 
 source "net/ax25/Kconfig"
 
 source "net/irda/Kconfig"
 
-source "drivers/isdn/Kconfig"
-
-source "drivers/video/Kconfig"
-
-source "drivers/cdrom/Kconfig"
-
-source "drivers/input/Kconfig"
+source "drivers/Kconfig"
 
 
 menu "Macintosh device drivers"
@@ -1289,9 +1261,6 @@
 
 endmenu
 
-source "drivers/char/Kconfig"
-
-source "drivers/media/Kconfig"
 
 source "fs/Kconfig"
 
@@ -1320,8 +1289,6 @@
 	default y
 
 endmenu
-
-source "drivers/usb/Kconfig"
 
 source "net/bluetooth/Kconfig"
 
--- 1.30/arch/x86_64/Kconfig	Mon Sep  8 03:44:40 2003
+++ edited/arch/x86_64/Kconfig	Tue Sep 23 11:50:44 2003
@@ -395,55 +395,11 @@
 
 endmenu
 
-source "drivers/base/Kconfig"
-
-source "drivers/mtd/Kconfig"
-
-source "drivers/parport/Kconfig"
-
-source "drivers/block/Kconfig"
-
-source "drivers/ide/Kconfig"
-
-source "drivers/scsi/Kconfig"
-
-source "drivers/md/Kconfig"
-
-source "drivers/telephony/Kconfig"
-
-source "drivers/message/fusion/Kconfig"
-
-source "drivers/ieee1394/Kconfig"
-
-#Currently not 64-bit safe
-#source drivers/message/i2o/Config.in
-source "net/Kconfig"
-
-source "net/ax25/Kconfig"
-
-source "net/irda/Kconfig"
-
-source "drivers/isdn/Kconfig"
-
-# no support for non IDE/SCSI cdroms as they were all ISA only
-#
-# input before char - char/joystick depends on it. As does USB.
-#
-source "drivers/input/Kconfig"
-
-source "drivers/char/Kconfig"
-
-source "drivers/misc/Kconfig"
-
-source "drivers/media/Kconfig"
+source "drivers/Kconfig"
 
 source "fs/Kconfig"
 
-source "drivers/video/Kconfig"
-
 source "sound/Kconfig"
-
-source "drivers/usb/Kconfig"
 
 source "net/bluetooth/Kconfig"
 
--- 1.4/drivers/message/i2o/Kconfig	Thu Mar 20 19:44:46 2003
+++ edited/drivers/message/i2o/Kconfig	Tue Sep 23 11:52:11 2003
@@ -1,5 +1,6 @@
-
+# Currently not 64-bit safe
 menu "I2O device support"
+	depends on !X86_64
 
 config I2O
 	tristate "I2O support"
@@ -78,4 +79,3 @@
 	  here and read <file:Documentation/modules.txt>.
 
 endmenu
-

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

* Re: [PATCH][RFC] drivers/Kconfig
  2003-09-23 15:20 [PATCH][RFC] drivers/Kconfig Christoph Hellwig
@ 2003-09-23 16:02 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2003-09-23 16:02 UTC (permalink / raw)
  To: Christoph Hellwig, linux-kernel

On Tue, Sep 23, 2003 at 05:20:32PM +0200, Christoph Hellwig wrote:
> What do people think about creating a common drivers/Kconfig
> that includes the drivers/*/Kconfig files?  This saves quite
> a few superflous Kconfig lines and is a natural way to avoid
> the architectyures going out of sync.  Yes, this requires
> every driver having proper bus-depencies but we should be
> almost there already.
> 
> Sample patch (for ppc, i386 and x86_64) attached.  

Yes, this is the goal.

This won't be very useful to the more exotic architectures like S/390,
which use almost none of drivers/* except for drivers/s390/*, so for
non-PCI, non-ISA architectures I have a feeling that including
drivers/Kconfig would be a waste.

	Jeff





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

end of thread, other threads:[~2003-09-23 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 15:20 [PATCH][RFC] drivers/Kconfig Christoph Hellwig
2003-09-23 16:02 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).