handle new libs required for new kernels
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39142
This commit is contained in:
parent
21d57f5a40
commit
2b22d909fd
1 changed files with 10 additions and 0 deletions
|
@ -74,8 +74,18 @@ define KernelPackage/usb-eth-gadget
|
||||||
CONFIG_USB_ETH_RNDIS=y \
|
CONFIG_USB_ETH_RNDIS=y \
|
||||||
CONFIG_USB_ETH_EEM=y
|
CONFIG_USB_ETH_EEM=y
|
||||||
DEPENDS:=+kmod-usb-gadget +(!LINUX_3_3&&!LINUX_3_6):kmod-usb-lib-composite
|
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
|
FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_ether.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,52,g_ether)
|
AUTOLOAD:=$(call AutoLoad,52,g_ether)
|
||||||
|
endif
|
||||||
$(call AddDepends/usb)
|
$(call AddDepends/usb)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue