diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-29 03:16:09 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-29 03:16:09 +0100 |
commit | 2d3042634af4767714cb90eff3f773ef54afb5ed (patch) | |
tree | 52df7aa6b75899440a32b7c80c8d7015adaf4524 /net-misc/ena-driver/ena-driver-2.8.7.ebuild | |
parent | 14bda3c9c57c13e8a59303f400678313fd770bdd (diff) |
gentoo auto-resync : 29:05:2023 - 03:16:09
Diffstat (limited to 'net-misc/ena-driver/ena-driver-2.8.7.ebuild')
-rw-r--r-- | net-misc/ena-driver/ena-driver-2.8.7.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net-misc/ena-driver/ena-driver-2.8.7.ebuild b/net-misc/ena-driver/ena-driver-2.8.7.ebuild new file mode 100644 index 000000000000..7c93be223a28 --- /dev/null +++ b/net-misc/ena-driver/ena-driver-2.8.7.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-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 +} |