kernel: add stmmac as a new kernel package
authorJohn Crispin <john@openwrt.org>
Fri, 29 May 2015 12:25:34 +0000 (12:25 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 29 May 2015 12:25:34 +0000 (12:25 +0000)
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
SVN-Revision: 45829

package/kernel/linux/modules/netdevices.mk

index 9dd18f311f287f505c2120cc05ace42c773a32a3..62fd949e045c9069ca0db6330d2f7e5b5f6eefc4 100644 (file)
@@ -811,6 +811,27 @@ endef
 $(eval $(call KernelPackage,vmxnet3))
 
 
+define KernelPackage/stmmac
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=STMicro 10/100/1000 Ethernet driver
+  DEPENDS:=+kmod-mii +kmod-ptp
+  KCONFIG:=CONFIG_NET_VENDOR_STMICRO=y \
+         CONFIG_STMMAC_ETH \
+         CONFIG_STMMAC_PLATFORM=y \
+         CONFIG_STMMAC_DEBUG_FS=y \
+         CONFIG_STMMAC_DA=y \
+         CONFIG_DWMAC_IPQ806X=y
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/stmmac.ko
+  AUTOLOAD:=$(call AutoLoad,50,stmmac.ko)
+endef
+
+define KernelPackage/stmmac/description
+  Kernel module for STMicroelectronics 10/100/1000 Ethernet driver
+endef
+
+$(eval $(call KernelPackage,stmmac))
+
+
 define KernelPackage/spi-ks8995
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Micrel/Kendin KS8995 Ethernet switch control