mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kbuild : Make Fusion MPT selectable from "Device drivers" menu
@ 2006-12-07 11:59 Robert P. J. Day
  2006-12-07 16:43 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2006-12-07 11:59 UTC (permalink / raw)
  To: Linux kernel mailing list


  Rewrite the Fusion MPT Kconfig file so that all of MPT functionality
is entirely selectable from "Device drivers."

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

  The original Kconfig file seems to have an odd structure, as you can
see from the first part of the file:

========================================================
menu "Fusion MPT device support"

config FUSION
        bool
        default n

config FUSION_SPI
        tristate "Fusion MPT ScsiHost drivers for SPI"
        depends on PCI && SCSI
        select FUSION
        select SCSI_SPI_ATTRS
        ...
========================================================

  note how the majority of entries in that file don't directly
*depend* on FUSION.  instead, they depend on *external* config
variables, and *select* FUSION, and this is not the only place i've
noticed that kind of dependency wording.

  is that a regular feature?  having that structure certainly makes it
slightly more difficult to rewrite the menu entries, and it's not
clear there's any obvious advantage to doing it that way.


diff --git a/drivers/message/fusion/Kconfig b/drivers/message/fusion/Kconfig
index ea31d84..b2da14d 100644
--- a/drivers/message/fusion/Kconfig
+++ b/drivers/message/fusion/Kconfig
@@ -1,14 +1,12 @@
-
-menu "Fusion MPT device support"
-
-config FUSION
-	bool
+menuconfig FUSION
+	bool "Fusion MPT device support"
 	default n

+if FUSION
+
 config FUSION_SPI
 	tristate "Fusion MPT ScsiHost drivers for SPI"
 	depends on PCI && SCSI
-	select FUSION
 	select SCSI_SPI_ATTRS
 	---help---
 	  SCSI HOST support for a parallel SCSI host adapters.
@@ -23,7 +21,6 @@ config FUSION_SPI
 config FUSION_FC
 	tristate "Fusion MPT ScsiHost drivers for FC"
 	depends on PCI && SCSI
-	select FUSION
 	select SCSI_FC_ATTRS
 	---help---
 	  SCSI HOST support for a Fiber Channel host adapters.
@@ -40,7 +37,6 @@ config FUSION_FC
 config FUSION_SAS
 	tristate "Fusion MPT ScsiHost drivers for SAS"
 	depends on PCI && SCSI
- 	select FUSION
 	select SCSI_SAS_ATTRS
 	---help---
 	  SCSI HOST support for a SAS host adapters.
@@ -100,4 +96,4 @@ config FUSION_LAN

 	  If unsure whether you really want or need this, say N.

-endmenu
+endif

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

* Re: [PATCH] kbuild : Make Fusion MPT selectable from "Device drivers" menu
  2006-12-07 11:59 [PATCH] kbuild : Make Fusion MPT selectable from "Device drivers" menu Robert P. J. Day
@ 2006-12-07 16:43 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2006-12-07 16:43 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux kernel mailing list

On Thu, 7 Dec 2006 06:59:52 -0500 (EST) Robert P. J. Day wrote:

> 
>   Rewrite the Fusion MPT Kconfig file so that all of MPT functionality
> is entirely selectable from "Device drivers."
> 
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>

but I think that you should cc: the FUSION email addresses
that are listed in the MAINTAINERS file...


> ---
> 
>   The original Kconfig file seems to have an odd structure, as you can
> see from the first part of the file:
> 
> ========================================================
> menu "Fusion MPT device support"
> 
> config FUSION
>         bool
>         default n
> 
> config FUSION_SPI
>         tristate "Fusion MPT ScsiHost drivers for SPI"
>         depends on PCI && SCSI
>         select FUSION
>         select SCSI_SPI_ATTRS
>         ...
> ========================================================
> 
>   note how the majority of entries in that file don't directly
> *depend* on FUSION.  instead, they depend on *external* config
> variables, and *select* FUSION, and this is not the only place i've
> noticed that kind of dependency wording.
> 
>   is that a regular feature?  having that structure certainly makes it
> slightly more difficult to rewrite the menu entries, and it's not
> clear there's any obvious advantage to doing it that way.
> 
> 
> diff --git a/drivers/message/fusion/Kconfig b/drivers/message/fusion/Kconfig
> index ea31d84..b2da14d 100644
> --- a/drivers/message/fusion/Kconfig
> +++ b/drivers/message/fusion/Kconfig
> @@ -1,14 +1,12 @@
> -
> -menu "Fusion MPT device support"
> -
> -config FUSION
> -	bool
> +menuconfig FUSION
> +	bool "Fusion MPT device support"
>  	default n
> 
> +if FUSION
> +
>  config FUSION_SPI
>  	tristate "Fusion MPT ScsiHost drivers for SPI"
>  	depends on PCI && SCSI
> -	select FUSION
>  	select SCSI_SPI_ATTRS
>  	---help---
>  	  SCSI HOST support for a parallel SCSI host adapters.
> @@ -23,7 +21,6 @@ config FUSION_SPI
>  config FUSION_FC
>  	tristate "Fusion MPT ScsiHost drivers for FC"
>  	depends on PCI && SCSI
> -	select FUSION
>  	select SCSI_FC_ATTRS
>  	---help---
>  	  SCSI HOST support for a Fiber Channel host adapters.
> @@ -40,7 +37,6 @@ config FUSION_FC
>  config FUSION_SAS
>  	tristate "Fusion MPT ScsiHost drivers for SAS"
>  	depends on PCI && SCSI
> - 	select FUSION
>  	select SCSI_SAS_ATTRS
>  	---help---
>  	  SCSI HOST support for a SAS host adapters.
> @@ -100,4 +96,4 @@ config FUSION_LAN
> 
>  	  If unsure whether you really want or need this, say N.
> 
> -endmenu
> +endif
> -


---
~Randy

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

end of thread, other threads:[~2006-12-07 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-07 11:59 [PATCH] kbuild : Make Fusion MPT selectable from "Device drivers" menu Robert P. J. Day
2006-12-07 16:43 ` Randy Dunlap

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

all inboxes | Powered by JetHome®