summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2013-12-20 06:09:41 +0000
committerImre Kaloz <kaloz@openwrt.org>2013-12-20 06:09:41 +0000
commit2b22d909fdc8e8c08b2209536f11db07972fa11a (patch)
tree93b9798be7bb122834185217b143bd0ebff99c2d
parent21d57f5a40773da29964f14cdd7399e4840d954e (diff)
downloadmtk-20170518-2b22d909fdc8e8c08b2209536f11db07972fa11a.zip
mtk-20170518-2b22d909fdc8e8c08b2209536f11db07972fa11a.tar.gz
mtk-20170518-2b22d909fdc8e8c08b2209536f11db07972fa11a.tar.bz2
handle new libs required for new kernels
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39142
-rw-r--r--package/kernel/linux/modules/usb.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index bd69faa..f1f1057 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -74,8 +74,18 @@ define KernelPackage/usb-eth-gadget
CONFIG_USB_ETH_RNDIS=y \
CONFIG_USB_ETH_EEM=y
DEPENDS:=+kmod-usb-gadget +(!LINUX_3_3&&!LINUX_3_6):kmod-usb-lib-composite
+ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko),)
+ FILES:= \
+ $(LINUX_DIR)/drivers/usb/gadget/u_ether.ko \
+ $(LINUX_DIR)/drivers/usb/gadget/u_rndis.ko \
+ $(LINUX_DIR)/drivers/usb/gadget/usb_f_rndis.ko \
+ $(LINUX_DIR)/drivers/usb/gadget/usb_f_eem.ko \
+ $(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
+ AUTOLOAD:=$(call AutoLoad,52,g_ether)
+else
FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
AUTOLOAD:=$(call AutoLoad,52,g_ether)
+endif
$(call AddDepends/usb)
endef