x86: Add kmod-dwmac-intel main master
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 26 Nov 2023 22:59:54 +0000 (23:59 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 1 Dec 2023 23:42:00 +0000 (00:42 +0100)
This adds the Intel Ethernet driver for the Intel Quark/EHL/TGL chips.

Fixes: #13994
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/netdevices.mk
target/linux/x86/image/64.mk
target/linux/x86/modules.mk

index f44cbd24f753a6f9d4fef17f5c4052045ff83911..d357b233f2a0d46851bfb49f09e34aa78bb9da3c 100644 (file)
@@ -1546,7 +1546,7 @@ $(eval $(call KernelPackage,sfp))
 define KernelPackage/stmmac-core
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Synopsis Ethernet Controller core (NXP,STMMicro,others)
-  DEPENDS:=@(TARGET_armsr_armv8) +kmod-pcs-xpcs +kmod-ptp \
+  DEPENDS:=@TARGET_x86_64||TARGET_armsr_armv8 +kmod-pcs-xpcs +kmod-ptp \
     +kmod-of-mdio
   KCONFIG:=CONFIG_STMMAC_ETH \
     CONFIG_STMMAC_SELFTESTS=n \
index 718ff4f63d7c965a7c8b60950220aadd460a2d71..f3d795ea22506ce6ed1357512049690cb9ca8a84 100644 (file)
@@ -2,7 +2,7 @@ define Device/generic
   DEVICE_VENDOR := Generic
   DEVICE_MODEL := x86/64
   DEVICE_PACKAGES += \
-       kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-e1000e kmod-e1000 \
+       kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-dwmac-intel kmod-e1000e kmod-e1000 \
        kmod-forcedeth kmod-fs-vfat kmod-igb kmod-igc kmod-ixgbe kmod-r8169 \
        kmod-tg3 kmod-mlxsw-core kmod-mlxsw-pci kmod-mlxsw-i2c \
        kmod-mlxsw-spectrum kmod-mlxsw-minimal kmod-mlxfw \
index 511410d614bc819edd0543b4ecfc9d858d8fa29b..cdae01bce651f73ac90feb3ca53fac672f11e068 100644 (file)
@@ -18,6 +18,18 @@ endef
 $(eval $(call KernelPackage,amd-xgbe))
 
 
+define KernelPackage/dwmac-intel
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Intel GMAC support
+  DEPENDS:=@TARGET_x86_64 +kmod-stmmac-core
+  KCONFIG:=CONFIG_DWMAC_INTEL
+  FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.ko
+  AUTOLOAD=$(call AutoLoad,45,dwmac-intel)
+endef
+
+$(eval $(call KernelPackage,dwmac-intel))
+
+
 define KernelPackage/f71808e-wdt
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Fintek F718xx/F818xx Watchdog Timer