aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2022-10-05 12:40:22 +1100
committerPetr Štetiar <ynezz@true.cz>2023-06-13 14:14:28 +0200
commit963ce6990f231d9457cf700275963563901c05cc (patch)
treedb74629b1356a0c00b5fead638e8ac7466bfd328
parent86b50228c09acf09266fdb2f166a121ff7cc23e2 (diff)
downloadupstream-963ce6990f231d9457cf700275963563901c05cc.tar.gz
upstream-963ce6990f231d9457cf700275963563901c05cc.tar.bz2
upstream-963ce6990f231d9457cf700275963563901c05cc.zip
kernel: kmod-amazon-ena: move to top level netdevices
The Amazon ENA network devices are also used on the AWS Arm (Graviton) instance types, so move it from the x86-only module file to the top level netdevices. Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit 3a7c8fd15e89237c8c9db62393d057f3a47429d2)
-rw-r--r--package/kernel/linux/modules/netdevices.mk16
-rw-r--r--target/linux/x86/modules.mk17
2 files changed, 15 insertions, 18 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index dd458ece4c..e9821c56ec 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -1522,7 +1522,6 @@ endef
$(eval $(call KernelPackage,atlantic))
-
define KernelPackage/lan743x
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Microchip LAN743x PCI Express Gigabit Ethernet NIC
@@ -1538,3 +1537,18 @@ endef
$(eval $(call KernelPackage,lan743x))
+define KernelPackage/amazon-ena
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Elastic Network Adapter (for Amazon AWS)
+ DEPENDS:=@TARGET_x86_64||TARGET_armvirt_64
+ KCONFIG:=CONFIG_ENA_ETHERNET
+ FILES:=$(LINUX_DIR)/drivers/net/ethernet/amazon/ena/ena.ko
+ AUTOLOAD:=$(call AutoLoad,12,ena)
+endef
+
+define KernelPackage/amazon-ena/description
+ This driver supports Elastic Network Adapter (ENA)
+ used by Amazon AWS T3 (2018) and later instances.
+endef
+
+$(eval $(call KernelPackage,amazon-ena))
diff --git a/target/linux/x86/modules.mk b/target/linux/x86/modules.mk
index f6a7c6c440..511410d614 100644
--- a/target/linux/x86/modules.mk
+++ b/target/linux/x86/modules.mk
@@ -2,23 +2,6 @@
#
# Copyright (C) 2017 Cezary Jackiewicz <cezary@eko.one.pll>
-define KernelPackage/amazon-ena
- SUBMENU:=$(NETWORK_DEVICES_MENU)
- TITLE:=Elastic Network Adapter (for Amazon AWS T3)
- DEPENDS:=@TARGET_x86_64
- KCONFIG:=CONFIG_ENA_ETHERNET
- FILES:=$(LINUX_DIR)/drivers/net/ethernet/amazon/ena/ena.ko
- AUTOLOAD:=$(call AutoLoad,12,ena)
-endef
-
-define KernelPackage/amazon-ena/description
- This driver supports Elastic Network Adapter (ENA)
- used by Amazon AWS T3 instances.
-endef
-
-$(eval $(call KernelPackage,amazon-ena))
-
-
define KernelPackage/amd-xgbe
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=AMD Ethernet on SoC support