aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-11-03 20:17:52 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-11-03 20:17:52 +0000
commit1cd5c51159a177966b209f7436d4893484b50bc9 (patch)
treec044f056414dc0de8bbc23e49e7d8b023f522974 /package
parent63fcb55d979d3a8f5910ce696d746b959ecc3b75 (diff)
downloadupstream-1cd5c51159a177966b209f7436d4893484b50bc9.tar.gz
upstream-1cd5c51159a177966b209f7436d4893484b50bc9.tar.bz2
upstream-1cd5c51159a177966b209f7436d4893484b50bc9.zip
kernel: fix dependencies of usb-eth-gadget
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38638 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/usb.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 1614419273..bec9f6bd8f 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -39,8 +39,8 @@ endef
define KernelPackage/usb-gadget
TITLE:=USB Gadget support
KCONFIG:=CONFIG_USB_GADGET
- FILES:=
- AUTOLOAD:=
+ FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc-core.ko
+ AUTOLOAD:=$(call AutoLoad,45,udc-core)
DEPENDS:=@USB_GADGET_SUPPORT
$(call AddDepends/usb)
endef
@@ -51,6 +51,21 @@ endef
$(eval $(call KernelPackage,usb-gadget))
+define KernelPackage/usb-lib-composite
+ TITLE:=USB lib composite
+ KCONFIG:=CONFIG_USB_LIBCOMPOSITE
+ DEPENDS:=+kmod-usb-gadget +kmod-fs-configfs @!LINUX_3_3 @!LINUX_3_6
+ FILES:=$(LINUX_DIR)/drivers/usb/gadget/libcomposite.ko
+ AUTOLOAD:=$(call AutoLoad,50,libcomposite)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-lib-composite/description
+ Lib Composite
+endef
+
+$(eval $(call KernelPackage,usb-lib-composite))
+
define KernelPackage/usb-eth-gadget
TITLE:=USB Ethernet Gadget support
@@ -58,7 +73,7 @@ define KernelPackage/usb-eth-gadget
CONFIG_USB_ETH \
CONFIG_USB_ETH_RNDIS=y \
CONFIG_USB_ETH_EEM=y
- DEPENDS:=+kmod-usb-gadget
+ DEPENDS:=+kmod-usb-gadget +(!LINUX_3_3&&!LINUX_3_6):kmod-usb-lib-composite
FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
AUTOLOAD:=$(call AutoLoad,52,g_ether)
$(call AddDepends/usb)