Merge pull request #126738 from NixOS/backport-126060-to-release-21.05

[Backport release-21.05] dpdk-kmods: init at 2021-04-21
This commit is contained in:
Jörg Thalheim 2021-07-03 05:06:36 +01:00 committed by GitHub
commit fe80e34fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,34 @@
{ lib, stdenv, fetchzip, kernel }:
stdenv.mkDerivation rec {
pname = "dpdk-kmods";
version = "2021-04-21";
src = fetchzip {
url = "http://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e13d7af77a1bf98757f85c3c4083f6ee6d0d2372.tar.xz";
sha256 = "sha256-8ysWT3X3rIyUAo4/QbkX7cQq5iFeU18/BPsmmWugcIc=";
};
hardeningDisable = [ "pic" ];
KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
nativeBuildInputs = kernel.moduleBuildDependencies;
preBuild = "cd linux/igb_uio";
installPhase = ''
make -C ${KSRC} M=$(pwd) modules_install
'';
INSTALL_MOD_PATH = placeholder "out";
enableParallelBuilding = true;
meta = with lib; {
description = "Kernel modules for DPDK";
homepage = "https://git.dpdk.org/dpdk-kmods/";
license = licenses.gpl2Only;
maintainers = [ maintainers.mic92 ];
platforms = platforms.linux;
};
}

View File

@ -20533,7 +20533,9 @@ in
digimend = callPackage ../os-specific/linux/digimend { };
dpdk = callPackage ../os-specific/linux/dpdk { };
dpdk-kmods = callPackage ../os-specific/linux/dpdk-kmods { };
dpdk = throw "The dpdk driver has been renamed to dpdk-mods.";
exfat-nofuse = callPackage ../os-specific/linux/exfat { };