summaryrefslogtreecommitdiff
path: root/package/kernel
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-20 06:09:41 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-12-20 06:09:41 +0000
commit30f6063468b76c18c0f784eff05d04d579b69335 (patch)
treecafc0d0a7a45f8ce876ae75ce34aaa35f50c8402 /package/kernel
parentad3f2c3bc034b092855a2dfdcc556a1f9cc66eea (diff)
[usb ethernet gadget]: handle new libs required for new kernels
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39142 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-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 bd69faa776..f1f1057d41 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