Changeset 14354


Ignore:
Timestamp:
2009-02-02T15:36:45+01:00 (7 years ago)
Author:
florian
Message:

[package] package libphy separately and make tg3 depend on it for kernels 2.6.27 and superior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/netdevices.mk

    r14310 r14354  
    88 
    99NETWORK_DEVICES_MENU:=Network Devices 
     10 
     11define KernelPackage/libphy 
     12  SUBMENU:=$(NETWORK_DEVICES_MENU) 
     13  TITLE:=PHY library 
     14  KCONFIG:=CONFIG_PHYLIB 
     15  FILES:=$(LINUX_DIR)/drivers/net/phy/libphy.$(LINUX_KMOD_SUFFIX) 
     16  AUTOLOAD:=$(call AutoLoad,40,libphy) 
     17endef 
     18 
     19define KernelPackage/libphy/description 
     20  PHY library 
     21endef 
     22 
     23$(eval $(call KernelPackage,libphy)) 
    1024 
    1125define KernelPackage/natsemi 
     
    252266  FILES:=$(LINUX_DIR)/drivers/net/tg3.$(LINUX_KMOD_SUFFIX) 
    253267  KCONFIG:=CONFIG_TIGON3 
    254   DEPENDS:=@LINUX_2_6 
     268  DEPENDS:=@LINUX_2_6 +LINUX_2_6_27:kmod-libphy +LINUX_2_6_28:kmod-libphy 
    255269  SUBMENU:=$(NETWORK_DEVICES_MENU) 
    256270  AUTOLOAD:=$(call AutoLoad,50,tg3) 
    257 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.27)),1) 
    258   FILES+=$(LINUX_DIR)/drivers/net/phy/libphy.$(LINUX_KMOD_SUFFIX) 
    259   AUTOLOAD:=$(call AutoLoad,40,libphy tg3) 
    260 endif 
    261271endef 
    262272 
Note: See TracChangeset for help on using the changeset viewer.