summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel <dilfridge@gentoo.org>2020-03-28 17:57:43 +0100
committerAndreas K. Huettel <dilfridge@gentoo.org>2020-03-28 17:57:43 +0100
commit6a4c75f01fe4fc7c160cc46a17cfc46302f9f10c (patch)
treebad3ac88df86f7b81ce54d99e2540212ee7ea275 /net-misc/ena-driver
parentpackage.mask: Mask media-libs/openmoiv for removal (diff)
downloadgentoo-6a4c75f01fe4fc7c160cc46a17cfc46302f9f10c.tar.gz
gentoo-6a4c75f01fe4fc7c160cc46a17cfc46302f9f10c.tar.bz2
gentoo-6a4c75f01fe4fc7c160cc46a17cfc46302f9f10c.zip
net-misc/ena-driver: Version bump; add kernel option requirements
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>
Diffstat (limited to 'net-misc/ena-driver')
-rw-r--r--net-misc/ena-driver/Manifest1
-rw-r--r--net-misc/ena-driver/ena-driver-2.2.3.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/net-misc/ena-driver/Manifest b/net-misc/ena-driver/Manifest
index eec32b3ef5ea..66d250f9b1ba 100644
--- a/net-misc/ena-driver/Manifest
+++ b/net-misc/ena-driver/Manifest
@@ -1,2 +1,3 @@
DIST ena-driver-2.0.2-linux.zip 271852 BLAKE2B e2bf85a70abc0914fafb786bde2a24020ddf0e88e0a051f59938b0091e92fb8f11407567b384610f7838e85903eb734338f5af7f1045a05055566af83ddc1908 SHA512 8c1328ae6907f7e56d3398a6502db51dfb15772fbbb0eb075062ffa3f49b4b3697ec357c77f44701e33bd794e0b5858c619cad97581bbfb27ab010f7dd97da6b
DIST ena-driver-2.0.3-linux.zip 446695 BLAKE2B 43d4dc947f53c42c6ccda7a0fd3e32cda2c49aadee67ac7d719739f49c91b704aff04fa47f943667c7dd29f6ee0a573ceb43001a9dcdc6492cdbeb85091dd957 SHA512 08e8c1caecff3d7e19fd847e102506e501aafbefec1867fcc88d535fa728abfa7f0d292bdc9c4dff6c3d4d303002ab8b9a62bfc855cfda5130880fb237eb57c2
+DIST ena-driver-2.2.3-linux.zip 590240 BLAKE2B d1844cb49322439ace6fd387f2e73ae7b2e40895b65027d75630ded377dca56cee21606acefd4c6a4fcbea22375f2e423fb4f9ae3ae2c7360a0322fb8730ee8d SHA512 e762cba1ff2cfd04d7133a8742456a11d733c42e5a930bfe84ae82cb442b15d93ee9dab9d1f7e2be0cfcc5759dc82748283d16cff1a3827ac215dd36a15790c0
diff --git a/net-misc/ena-driver/ena-driver-2.2.3.ebuild b/net-misc/ena-driver/ena-driver-2.2.3.ebuild
new file mode 100644
index 000000000000..08cb302368ce
--- /dev/null
+++ b/net-misc/ena-driver/ena-driver-2.2.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info linux-mod
+
+DESCRIPTION="Amazon EC2 Elastic Network Adapter (ENA) kernel driver"
+HOMEPAGE="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html"
+SRC_URI="https://github.com/amzn/amzn-drivers/archive/ena_linux_${PV}.zip -> ${P}-linux.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/amzn-drivers-ena_linux_${PV}/kernel/linux/ena"
+
+MODULE_NAMES="ena(net:${S}:${S})"
+BUILD_TARGETS="all"
+
+CONFIG_CHECK="PCI_MSI !CPU_BIG_ENDIAN DIMLIB"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="CONFIG_MODULE_SIG=n KERNEL_DIR=${KV_DIR}"
+}
+
+src_prepare() {
+ default
+
+ sed -i -e 's!/lib/modules/\$(BUILD_KERNEL)/build!$(KERNEL_DIR)!g' \
+ "Makefile" || die "Unable to fix Makefile"
+}
+
+src_install() {
+ linux-mod_src_install
+ dodoc README RELEASENOTES.md
+}