[openwrt/openwrt] kernel: modules: package Aquantia PHY driver

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 15 14:43:07 PST 2023


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/061e863baef89776ede9478384458c434ccbf434

commit 061e863baef89776ede9478384458c434ccbf434
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Wed Feb 15 16:58:41 2023 +0100

    kernel: modules: package Aquantia PHY driver
    
    Package the Aquantia AQR PHY driver as kmod.
    
    This enables using the Aquantia driver with hwmon support on targets where
    hwmon is not compiled-in.
    
    Currently, in case when AQR driver is compiled-in but hwmon core is not
    hwmon code in AQR driver will not get compiled because of macro
    IS_REACHABLE(CONFIG_HWMON) evaluating to false.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 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 518d83f9a2..248aaf06f7 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -340,6 +340,22 @@ endef
 $(eval $(call KernelPackage,phy-smsc))
 
 
+define KernelPackage/phy-aquantia
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Aquantia Ethernet PHYs
+  DEPENDS:=+kmod-libphy +kmod-hwmon-core
+  KCONFIG:=CONFIG_AQUANTIA_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/aquantia.ko
+  AUTOLOAD:=$(call AutoLoad,18,aquantia,1)
+endef
+
+define KernelPackage/phy-aquantia/description
+  Kernel modules for Aquantia Ethernet PHYs
+endef
+
+$(eval $(call KernelPackage,phy-aquantia))
+
+
 define KernelPackage/swconfig
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=switch configuration API




More information about the lede-commits mailing list