From 3fd0ad1654d9aa2c3e96f58023ec39aa015d20d0 Mon Sep 17 00:00:00 2001 From: Eray Aslan Date: Sat, 28 Jan 2023 08:50:56 +0100 Subject: net-misc/ena-driver: add 2.8.2 Signed-off-by: Eray Aslan --- net-misc/ena-driver/Manifest | 1 + net-misc/ena-driver/ena-driver-2.8.2.ebuild | 40 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 net-misc/ena-driver/ena-driver-2.8.2.ebuild (limited to 'net-misc/ena-driver') diff --git a/net-misc/ena-driver/Manifest b/net-misc/ena-driver/Manifest index 3bd037858070..7b892213e049 100644 --- a/net-misc/ena-driver/Manifest +++ b/net-misc/ena-driver/Manifest @@ -1,2 +1,3 @@ DIST ena-driver-2.6.1-linux.tar.gz 542085 BLAKE2B 1509d3a22478d648426c788e8343ca121883a2d5fc241a8dbd95836ae48160795ae953a2327ea31190caaf8eaa69d72331a1cf250b56fe8af2fcfd98e3ecd313 SHA512 a24c2c062cd66cbfa8fb9b1fa7093650eda1061bd502a3e57bfdbf3b5b36064f457860e4d5cb045f11de6437e03ad2cfb3390be8876a0ee7a474be1d5cdd8f40 DIST ena-driver-2.8.0-linux.tar.gz 1196967 BLAKE2B 2f4c5ebba357fbea42aee5f921f60d9b7f18558df6e955e39c81c4e4693b5fe39ae7de2123c6e74e0ea9c99888fcf143b68ce67de55efbd4b30a37cf805cde40 SHA512 549b33f913bc4fa48f27d24e66d77032e32992f7f9c6afb1ce82e89d343516201442c70f3146d919b81632b97baee699f1c60001cb2a1730720681fa28452e3e +DIST ena-driver-2.8.2-linux.tar.gz 1199506 BLAKE2B b9c6ed91341f2475481556dcb7615f97e9701ad0fdd3452d193c334ae169e59a74f66d32d2a8d04c43024dee34282070b65201d635bc01e326a59e8d3aa698dc SHA512 3921dff857b1bbbd9d97401a8740c50d9849fcda71683ca8ba656affcc6df472836b109cb182703b85e2521bc59183a1204eac46f430522f1ba48c8d66e1db7e diff --git a/net-misc/ena-driver/ena-driver-2.8.2.ebuild b/net-misc/ena-driver/ena-driver-2.8.2.ebuild new file mode 100644 index 000000000000..21df1541893f --- /dev/null +++ b/net-misc/ena-driver/ena-driver-2.8.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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}.tar.gz -> ${P}-linux.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +BDEPEND="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.rst RELEASENOTES.md +} -- cgit v1.2.3-65-gdbad