[OpenWrt-Devel] [PATCH 2/2] kernel: Add a selectable option for ar8xxx
Mathieu Olivari
mathieu at codeaurora.org
Wed Feb 18 20:25:05 EST 2015
AR8xxx driver covers all the QCA switch families. Most architectures
usually build it in the kernel, but it may be valuable for some targets
to build it as a module for more flexibility.
Signed-off-by: Mathieu Olivari <mathieu at codeaurora.org>
---
package/kernel/linux/modules/netdevices.mk | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index b5dc92f..cce1b90 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -165,6 +165,22 @@ endef
$(eval $(call KernelPackage,swconfig))
+define KernelPackage/switch-ar8xxx
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Qualcomm Atheros AR82XX/AR83XX switch support
+ DEPENDS:=+kmod-swconfig
+ KCONFIG:=CONFIG_AR8XXX_PHY
+ FILES:=$(LINUX_DIR)/drivers/net/phy/ar8xxx.ko
+ AUTOLOAD:=$(call AutoLoad,42,ar8xxx)
+endef
+
+define KernelPackage/switch-ar8xxx/description
+ Qualcomm atheros AR82XX/AR83XX switch support
+endef
+
+$(eval $(call KernelPackage,switch-ar8xxx))
+
+
define KernelPackage/switch-ip17xx
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=IC+ IP17XX switch support
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list