Commit a7a6b35f authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] select MII

The patch below switches MII to be select'ed instead of including it in
the Makefile.

Note that this patch requires a recent Linus' tree with the select CRC32
patch included.

diffstat output:

 drivers/net/Kconfig          |   11 +++++++++++
 drivers/net/Makefile         |   28 +++++++++++-----------------
 drivers/net/pcmcia/Kconfig   |    1 +
 drivers/net/tulip/Kconfig    |    1 +
 drivers/usb/net/Kconfig      |    2 ++
 drivers/usb/net/Makefile.mii |    6 ------
 6 files changed, 26 insertions(+), 23 deletions(-)


Tangential to the patch I observed a small problem (not fixed in the patch):
MII depends on NET_ETHERNET, but USB_PEGASUS and USB_USBNET depend
only on NET.

cu
Adrian
parent cf967453
...@@ -1210,6 +1210,7 @@ config PCNET32 ...@@ -1210,6 +1210,7 @@ config PCNET32
tristate "AMD PCnet32 PCI support" tristate "AMD PCnet32 PCI support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
If you have a PCnet32 or PCnetPCI based network (Ethernet) card, If you have a PCnet32 or PCnetPCI based network (Ethernet) card,
answer Y here and read the Ethernet-HOWTO, available from answer Y here and read the Ethernet-HOWTO, available from
...@@ -1223,6 +1224,7 @@ config AMD8111_ETH ...@@ -1223,6 +1224,7 @@ config AMD8111_ETH
tristate "AMD 8111 (new PCI lance) support" tristate "AMD 8111 (new PCI lance) support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
If you have an AMD 8111-based PCI lance ethernet card, If you have an AMD 8111-based PCI lance ethernet card,
answer Y here and read the Ethernet-HOWTO, available from answer Y here and read the Ethernet-HOWTO, available from
...@@ -1236,6 +1238,7 @@ config ADAPTEC_STARFIRE ...@@ -1236,6 +1238,7 @@ config ADAPTEC_STARFIRE
tristate "Adaptec Starfire/DuraLAN support" tristate "Adaptec Starfire/DuraLAN support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network
adapter. The DuraLAN chip is used on the 64 bit PCI boards from adapter. The DuraLAN chip is used on the 64 bit PCI boards from
...@@ -1330,6 +1333,7 @@ config DGRS ...@@ -1330,6 +1333,7 @@ config DGRS
config EEPRO100 config EEPRO100
tristate "EtherExpressPro/100 support (eepro100, original Becker driver)" tristate "EtherExpressPro/100 support (eepro100, original Becker driver)"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select MII
help help
If you have an Intel EtherExpress PRO/100 PCI network (Ethernet) If you have an Intel EtherExpress PRO/100 PCI network (Ethernet)
card, say Y and read the Ethernet-HOWTO, available from card, say Y and read the Ethernet-HOWTO, available from
...@@ -1442,6 +1446,7 @@ config FEALNX ...@@ -1442,6 +1446,7 @@ config FEALNX
tristate "Myson MTD-8xx PCI Ethernet support" tristate "Myson MTD-8xx PCI Ethernet support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
Say Y here to support the Mysom MTD-800 family of PCI-based Ethernet Say Y here to support the Mysom MTD-800 family of PCI-based Ethernet
cards. Specifications and data at cards. Specifications and data at
...@@ -1509,6 +1514,7 @@ config 8139CP ...@@ -1509,6 +1514,7 @@ config 8139CP
tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support (EXPERIMENTAL)" tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support (EXPERIMENTAL)"
depends on NET_PCI && PCI && EXPERIMENTAL depends on NET_PCI && PCI && EXPERIMENTAL
select CRC32 select CRC32
select MII
help help
This is a driver for the Fast Ethernet PCI network cards based on This is a driver for the Fast Ethernet PCI network cards based on
the RTL8139C+ chips. If you have one of those, say Y and read the RTL8139C+ chips. If you have one of those, say Y and read
...@@ -1522,6 +1528,7 @@ config 8139TOO ...@@ -1522,6 +1528,7 @@ config 8139TOO
tristate "RealTek RTL-8139 PCI Fast Ethernet Adapter support" tristate "RealTek RTL-8139 PCI Fast Ethernet Adapter support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
---help--- ---help---
This is a driver for the Fast Ethernet PCI network cards based on This is a driver for the Fast Ethernet PCI network cards based on
the RTL8139 chips. If you have one of those, say Y and read the RTL8139 chips. If you have one of those, say Y and read
...@@ -1594,6 +1601,7 @@ config EPIC100 ...@@ -1594,6 +1601,7 @@ config EPIC100
tristate "SMC EtherPower II" tristate "SMC EtherPower II"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC, This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC,
which is based on the SMC83c17x (EPIC/100). which is based on the SMC83c17x (EPIC/100).
...@@ -1604,6 +1612,7 @@ config SUNDANCE ...@@ -1604,6 +1612,7 @@ config SUNDANCE
tristate "Sundance Alta support" tristate "Sundance Alta support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
This driver is for the Sundance "Alta" chip. This driver is for the Sundance "Alta" chip.
More specific information and updates are available from More specific information and updates are available from
...@@ -1642,6 +1651,7 @@ config VIA_RHINE ...@@ -1642,6 +1651,7 @@ config VIA_RHINE
tristate "VIA Rhine support" tristate "VIA Rhine support"
depends on NET_PCI && PCI depends on NET_PCI && PCI
select CRC32 select CRC32
select MII
help help
If you have a VIA "rhine" based network card (Rhine-I (3043) or If you have a VIA "rhine" based network card (Rhine-I (3043) or
Rhine-2 (VT86c100A)), say Y here. Rhine-2 (VT86c100A)), say Y here.
...@@ -1896,6 +1906,7 @@ config NS83820 ...@@ -1896,6 +1906,7 @@ config NS83820
config HAMACHI config HAMACHI
tristate "Packet Engines Hamachi GNIC-II support" tristate "Packet Engines Hamachi GNIC-II support"
depends on PCI depends on PCI
select MII
help help
If you have a Gigabit Ethernet card of this type, say Y and read If you have a Gigabit Ethernet card of this type, say Y and read
the Ethernet-HOWTO, available from the Ethernet-HOWTO, available from
......
...@@ -37,10 +37,10 @@ obj-$(CONFIG_RCPCI) += rcpci.o ...@@ -37,10 +37,10 @@ obj-$(CONFIG_RCPCI) += rcpci.o
obj-$(CONFIG_VORTEX) += 3c59x.o obj-$(CONFIG_VORTEX) += 3c59x.o
obj-$(CONFIG_TYPHOON) += typhoon.o obj-$(CONFIG_TYPHOON) += typhoon.o
obj-$(CONFIG_NE2K_PCI) += ne2k-pci.o 8390.o obj-$(CONFIG_NE2K_PCI) += ne2k-pci.o 8390.o
obj-$(CONFIG_PCNET32) += pcnet32.o mii.o obj-$(CONFIG_PCNET32) += pcnet32.o
obj-$(CONFIG_EEPRO100) += eepro100.o mii.o obj-$(CONFIG_EEPRO100) += eepro100.o
obj-$(CONFIG_TLAN) += tlan.o obj-$(CONFIG_TLAN) += tlan.o
obj-$(CONFIG_EPIC100) += epic100.o mii.o obj-$(CONFIG_EPIC100) += epic100.o
obj-$(CONFIG_SIS190) += sis190.o obj-$(CONFIG_SIS190) += sis190.o
obj-$(CONFIG_SIS900) += sis900.o obj-$(CONFIG_SIS900) += sis900.o
obj-$(CONFIG_YELLOWFIN) += yellowfin.o obj-$(CONFIG_YELLOWFIN) += yellowfin.o
...@@ -49,13 +49,13 @@ obj-$(CONFIG_VETH) += veth.o ...@@ -49,13 +49,13 @@ obj-$(CONFIG_VETH) += veth.o
obj-$(CONFIG_NATSEMI) += natsemi.o obj-$(CONFIG_NATSEMI) += natsemi.o
obj-$(CONFIG_NS83820) += ns83820.o obj-$(CONFIG_NS83820) += ns83820.o
obj-$(CONFIG_STNIC) += stnic.o 8390.o obj-$(CONFIG_STNIC) += stnic.o 8390.o
obj-$(CONFIG_FEALNX) += fealnx.o mii.o obj-$(CONFIG_FEALNX) += fealnx.o
obj-$(CONFIG_TIGON3) += tg3.o obj-$(CONFIG_TIGON3) += tg3.o
obj-$(CONFIG_TC35815) += tc35815.o obj-$(CONFIG_TC35815) += tc35815.o
obj-$(CONFIG_SK98LIN) += sk98lin/ obj-$(CONFIG_SK98LIN) += sk98lin/
obj-$(CONFIG_SKFP) += skfp/ obj-$(CONFIG_SKFP) += skfp/
obj-$(CONFIG_VIA_RHINE) += via-rhine.o mii.o obj-$(CONFIG_VIA_RHINE) += via-rhine.o
obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o mii.o obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
# #
# end link order section # end link order section
...@@ -63,9 +63,8 @@ obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o mii.o ...@@ -63,9 +63,8 @@ obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o mii.o
obj-$(CONFIG_MII) += mii.o obj-$(CONFIG_MII) += mii.o
obj-$(CONFIG_WINBOND_840) += mii.o obj-$(CONFIG_SUNDANCE) += sundance.o
obj-$(CONFIG_SUNDANCE) += sundance.o mii.o obj-$(CONFIG_HAMACHI) += hamachi.o
obj-$(CONFIG_HAMACHI) += hamachi.o mii.o
obj-$(CONFIG_NET) += Space.o net_init.o loopback.o obj-$(CONFIG_NET) += Space.o net_init.o loopback.o
obj-$(CONFIG_SEEQ8005) += seeq8005.o obj-$(CONFIG_SEEQ8005) += seeq8005.o
obj-$(CONFIG_ETHERTAP) += ethertap.o obj-$(CONFIG_ETHERTAP) += ethertap.o
...@@ -131,8 +130,8 @@ obj-$(CONFIG_EL3) += 3c509.o ...@@ -131,8 +130,8 @@ obj-$(CONFIG_EL3) += 3c509.o
obj-$(CONFIG_3C515) += 3c515.o obj-$(CONFIG_3C515) += 3c515.o
obj-$(CONFIG_EEXPRESS) += eexpress.o obj-$(CONFIG_EEXPRESS) += eexpress.o
obj-$(CONFIG_EEXPRESS_PRO) += eepro.o obj-$(CONFIG_EEXPRESS_PRO) += eepro.o
obj-$(CONFIG_8139CP) += 8139cp.o mii.o obj-$(CONFIG_8139CP) += 8139cp.o
obj-$(CONFIG_8139TOO) += 8139too.o mii.o obj-$(CONFIG_8139TOO) += 8139too.o
obj-$(CONFIG_ZNET) += znet.o obj-$(CONFIG_ZNET) += znet.o
obj-$(CONFIG_LAN_SAA9730) += saa9730.o obj-$(CONFIG_LAN_SAA9730) += saa9730.o
obj-$(CONFIG_DEPCA) += depca.o obj-$(CONFIG_DEPCA) += depca.o
...@@ -175,10 +174,7 @@ obj-$(CONFIG_MAC89x0) += mac89x0.o ...@@ -175,10 +174,7 @@ obj-$(CONFIG_MAC89x0) += mac89x0.o
obj-$(CONFIG_TUN) += tun.o obj-$(CONFIG_TUN) += tun.o
obj-$(CONFIG_DL2K) += dl2k.o obj-$(CONFIG_DL2K) += dl2k.o
obj-$(CONFIG_R8169) += r8169.o obj-$(CONFIG_R8169) += r8169.o
obj-$(CONFIG_AMD8111_ETH) += amd8111e.o mii.o obj-$(CONFIG_AMD8111_ETH) += amd8111e.o
# non-drivers/net drivers who want mii lib
obj-$(CONFIG_PCMCIA_SMC91C92) += mii.o
obj-$(CONFIG_ARM) += arm/ obj-$(CONFIG_ARM) += arm/
obj-$(CONFIG_NET_FC) += fc/ obj-$(CONFIG_NET_FC) += fc/
...@@ -192,5 +188,3 @@ obj-$(CONFIG_NET_TULIP) += tulip/ ...@@ -192,5 +188,3 @@ obj-$(CONFIG_NET_TULIP) += tulip/
obj-$(CONFIG_HAMRADIO) += hamradio/ obj-$(CONFIG_HAMRADIO) += hamradio/
obj-$(CONFIG_IRDA) += irda/ obj-$(CONFIG_IRDA) += irda/
include $(TOPDIR)/drivers/usb/net/Makefile.mii
...@@ -77,6 +77,7 @@ config PCMCIA_SMC91C92 ...@@ -77,6 +77,7 @@ config PCMCIA_SMC91C92
tristate "SMC 91Cxx PCMCIA support" tristate "SMC 91Cxx PCMCIA support"
depends on NET_PCMCIA && PCMCIA depends on NET_PCMCIA && PCMCIA
select CRC32 select CRC32
select MII
help help
Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA
(PC-card) Ethernet or Fast Ethernet card to your computer. (PC-card) Ethernet or Fast Ethernet card to your computer.
......
...@@ -89,6 +89,7 @@ config WINBOND_840 ...@@ -89,6 +89,7 @@ config WINBOND_840
tristate "Winbond W89c840 Ethernet support" tristate "Winbond W89c840 Ethernet support"
depends on NET_TULIP && PCI depends on NET_TULIP && PCI
select CRC32 select CRC32
select MII
help help
This driver is for the Winbond W89c840 chip. It also works with This driver is for the Winbond W89c840 chip. It also works with
the TX9882 chip on the Compex RL100-ATX board. the TX9882 chip on the Compex RL100-ATX board.
......
...@@ -70,6 +70,7 @@ config USB_KAWETH ...@@ -70,6 +70,7 @@ config USB_KAWETH
config USB_PEGASUS config USB_PEGASUS
tristate "USB Pegasus/Pegasus-II based ethernet device support" tristate "USB Pegasus/Pegasus-II based ethernet device support"
depends on USB && NET depends on USB && NET
select MII
---help--- ---help---
Say Y here if you know you have Pegasus or Pegasus-II based adapter. Say Y here if you know you have Pegasus or Pegasus-II based adapter.
If in doubt then look at linux/drivers/usb/pegasus.h for the complete If in doubt then look at linux/drivers/usb/pegasus.h for the complete
...@@ -96,6 +97,7 @@ config USB_USBNET ...@@ -96,6 +97,7 @@ config USB_USBNET
tristate "Multi-purpose USB Networking Framework" tristate "Multi-purpose USB Networking Framework"
depends on USB && NET depends on USB && NET
select CRC32 select CRC32
select MII
---help--- ---help---
This driver supports several kinds of network links over USB, This driver supports several kinds of network links over USB,
with "minidrivers" built around a common network driver core with "minidrivers" built around a common network driver core
......
#
# Makefile for USB Network drivers which require generic MII code.
#
obj-$(CONFIG_USB_PEGASUS) += mii.o
obj-$(CONFIG_USB_USBNET) += mii.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment