From: Imre Kaloz Date: Fri, 20 Dec 2013 06:09:41 +0000 (+0000) Subject: [usb ethernet gadget]: handle new libs required for new kernels X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1b92904ab275471c455665f0651f8d80860894c8;p=openwrt%2Fsvn-archive%2Farchive.git [usb ethernet gadget]: handle new libs required for new kernels Signed-off-by: Imre Kaloz SVN-Revision: 39142 --- 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