Add usbnet and asix ethernet based adapters support (#1481)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 1 Apr 2007 21:59:19 +0000 (21:59 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 1 Apr 2007 21:59:19 +0000 (21:59 +0000)
SVN-Revision: 6812

package/kernel/modules/usb.mk

index 842fe198262fcd324a2170e9380d59c8618f6ac1..bceba63d96e4544d881bc70b3e5bb9166f4f84d7 100644 (file)
@@ -268,6 +268,26 @@ endef
 
 $(eval $(call KernelPackage,usb-pwc))
 
-
-
-
+define KernelPackage/usb-net
+  $(call usbdep,)
+  TITLE:=Kernel modules for USB-to-Ethernet convertors
+  DESCRIPTION:=Kernel modules for USB-to-Ethernet convertors
+  KCONFIG:=$(CONFIG_USB_USBNET)
+  DEPENDS:=@USB_SUPPORT
+  FILES:= \
+        $(MODULES_DIR)/kernel/drivers/usb/net/usbnet.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call Autoload,60, usbnet)
+endef
+$(eval $(call KernelPackage,usb-net))
+
+define KernelPackage/usb-net-asix
+  $(call usbdep,+kmod-usbnet)
+  TITLE:=Kernel module for USB-to-Ethernet Asix convertors
+  DESCRIPTION:=Kernel module for USB-to-Ethernet Asix convertors
+  DEPENDS:=kmod-usb-net
+  KCONFIG:=$(CONFIG_USB_NET_AX8817X)
+  FILES:= \
+        $(MODULES_DIR)/kernel/drivers/usb/net/asix.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call Autoload,61, asix)
+endef
+$(eval $(call KernelPackage,usb-net-asix))