diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2021-06-07 13:46:07 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2021-06-12 20:25:28 +0200 |
commit | 0d2276ec343e8965c023eecc1780d3521276047f (patch) | |
tree | ed5c22468af580b68d202e47e3f35d4028482281 | |
parent | 41387135ddb01d84049d1931292cacabbde54a34 (diff) |
dpdk-kmods: init at 2021-04-21
In the last release dpdk moved the uio_igb driver to a different package Without it dpdk is not very useful.
-rw-r--r-- | pkgs/os-specific/linux/dpdk-kmods/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 37 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/dpdk-kmods/default.nix b/pkgs/os-specific/linux/dpdk-kmods/default.nix new file mode 100644 index 0000000000000..a188336cbe500 --- /dev/null +++ b/pkgs/os-specific/linux/dpdk-kmods/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 19cbe826b9fd6..98422e4194306 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20675,7 +20675,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 { }; |