[openwrt/openwrt] kernel: netdevices: add ag71xx modules
LEDE Commits
lede-commits at lists.infradead.org
Sun Sep 22 09:46:22 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/eadb804955bf56a26764006e0180bf8e9efda776
commit eadb804955bf56a26764006e0180bf8e9efda776
Author: Oskari Lemmela <oskari at lemmela.net>
AuthorDate: Wed Jul 10 18:52:38 2024 +0300
kernel: netdevices: add ag71xx modules
Add support for building both upstream and downstream ag71xx drivers
as modules.
Signed-off-by: Oskari Lemmela <oskari at lemmela.net>
Link: https://github.com/openwrt/openwrt/pull/15926
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/kernel/linux/modules/netdevices.mk | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index fa837306e6..6eeb0f07cd 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -33,6 +33,33 @@ endef
$(eval $(call KernelPackage,skge))
+define KernelPackage/ag71xx
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Atheros AR7XXX/AR9XXX ethernet mac support
+ DEPENDS:=@PCI_SUPPORT||TARGET_ath79 +kmod-phylink +kmod-mdio-devres +kmod-net-selftests
+ KCONFIG:=CONFIG_AG71XX
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/atheros/ag71xx.ko
+ AUTOLOAD:=$(call AutoLoad,50,ag71xx,1)
+endef
+
+$(eval $(call KernelPackage,ag71xx))
+
+
+define KernelPackage/ag71xx-legacy
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Downstream Atheros AR7XXX/AR9XXX ethernet mac support
+ DEPENDS:=@TARGET_ath79 +kmod-libphy +kmod-mdio-devres
+ KCONFIG:=CONFIG_AG71XX_LEGACY \
+ CONFIG_AG71XX_LEGACY_DEBUG=n \
+ CONFIG_AG71XX_LEGACY_DEBUG_FS=y
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/atheros/ag71xx/ag71xx_legacy.ko \
+ $(LINUX_DIR)/drivers/net/ethernet/atheros/ag71xx/ag71xx_legacy_mdio.ko
+ AUTOLOAD:=$(call AutoLoad,50,ag71xx-legacy ag71xx-legacy-mdio,1)
+endef
+
+$(eval $(call KernelPackage,ag71xx-legacy))
+
+
define KernelPackage/alx
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Qualcomm Atheros AR816x/AR817x PCI-E Ethernet Network Driver
More information about the lede-commits
mailing list