aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-02-02 14:36:45 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-02-02 14:36:45 +0000
commit4802edaa2eab2462d0ad869a6b2a2c2030121bc5 (patch)
treed4e65e541cb5ce3af155069cabeded707a47b119 /package
parentae9ef08eb720dd4750edacb629471ed56759f25a (diff)
downloadmaster-187ad058-4802edaa2eab2462d0ad869a6b2a2c2030121bc5.tar.gz
master-187ad058-4802edaa2eab2462d0ad869a6b2a2c2030121bc5.tar.bz2
master-187ad058-4802edaa2eab2462d0ad869a6b2a2c2030121bc5.zip
[package] package libphy separately and make tg3 depend on it for kernels 2.6.27 and superior
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14354 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/modules/netdevices.mk20
1 files changed, 15 insertions, 5 deletions
diff --git a/package/kernel/modules/netdevices.mk b/package/kernel/modules/netdevices.mk
index 60311b6d57..454a9f26fa 100644
--- a/package/kernel/modules/netdevices.mk
+++ b/package/kernel/modules/netdevices.mk
@@ -8,6 +8,20 @@
NETWORK_DEVICES_MENU:=Network Devices
+define KernelPackage/libphy
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=PHY library
+ KCONFIG:=CONFIG_PHYLIB
+ FILES:=$(LINUX_DIR)/drivers/net/phy/libphy.$(LINUX_KMOD_SUFFIX)
+ AUTOLOAD:=$(call AutoLoad,40,libphy)
+endef
+
+define KernelPackage/libphy/description
+ PHY library
+endef
+
+$(eval $(call KernelPackage,libphy))
+
define KernelPackage/natsemi
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=National Semiconductor DP8381x series
@@ -251,13 +265,9 @@ define KernelPackage/tg3
TITLE:=Broadcom Tigon3 Gigabit Ethernet
FILES:=$(LINUX_DIR)/drivers/net/tg3.$(LINUX_KMOD_SUFFIX)
KCONFIG:=CONFIG_TIGON3
- DEPENDS:=@LINUX_2_6
+ DEPENDS:=@LINUX_2_6 +LINUX_2_6_27:kmod-libphy +LINUX_2_6_28:kmod-libphy
SUBMENU:=$(NETWORK_DEVICES_MENU)
AUTOLOAD:=$(call AutoLoad,50,tg3)
-ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.27)),1)
- FILES+=$(LINUX_DIR)/drivers/net/phy/libphy.$(LINUX_KMOD_SUFFIX)
- AUTOLOAD:=$(call AutoLoad,40,libphy tg3)
-endif
endef
define KernelPackage/tg3/description