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>

SVN-Revision: 39563
This commit is contained in:
Hauke Mehrtens 2014-02-10 20:30:24 +00:00
parent f73d6f102a
commit 31fb795fd0

View file

@ -102,8 +102,18 @@ $(eval $(call KernelPackage,usb-musb-tusb6010))
define KernelPackage/usb-phy-nop define KernelPackage/usb-phy-nop
TITLE:=Support for USB NOP transceiver TITLE:=Support for USB NOP transceiver
KCONFIG:=CONFIG_NOP_USB_XCEIV KCONFIG:=CONFIG_NOP_USB_XCEIV
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/phy/phy-generic.ko),)
FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-generic.ko
AUTOLOAD:=$(call AutoLoad,43,phy-generic) 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) $(call AddDepends/usb)
endef endef