diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2014-02-10 20:30:24 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2014-02-10 20:30:24 +0000 |
commit | e84b7226b0a6713c4edbb8aab562413766eb64d0 (patch) | |
tree | 794cce7ba9e369f6132c93dcb71b3139164aaf14 /package | |
parent | cbcc1ac2be838f8f4ec08665d6819e00c7e4554b (diff) | |
download | upstream-e84b7226b0a6713c4edbb8aab562413766eb64d0.tar.gz upstream-e84b7226b0a6713c4edbb8aab562413766eb64d0.tar.bz2 upstream-e84b7226b0a6713c4edbb8aab562413766eb64d0.zip |
kernel: fix kmod-usb-phy-nop
phy-generic.ko was renamed and moved from kernel version to version.
kernel <= 3.9: nop-usb-xceiv.ko
kernel >= 3.10 && <= 3.11: phy-nop.ko
kernel >= 3.12: phy-generic.ko
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39563 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/linux/modules/usb.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index a75d3e2fc9..7c16fe7973 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -102,8 +102,18 @@ $(eval $(call KernelPackage,usb-musb-tusb6010)) define KernelPackage/usb-phy-nop TITLE:=Support for USB NOP transceiver KCONFIG:=CONFIG_NOP_USB_XCEIV +ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-generic.ko),) FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko AUTOLOAD:=$(call AutoLoad,43,phy-generic) +else +ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-nop.ko),) + FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-nop.ko + AUTOLOAD:=$(call AutoLoad,43,phy-nop) +else + FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko + AUTOLOAD:=$(call AutoLoad,43,nop-usb-xceiv) +endif +endif $(call AddDepends/usb) endef |