2021-06-07 12:46:07 +01:00
|
|
|
{ lib, stdenv, fetchzip, kernel }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dpdk-kmods";
|
|
|
|
version = "2021-04-21";
|
|
|
|
|
|
|
|
src = fetchzip {
|
2022-05-23 13:11:55 +01:00
|
|
|
url = "https://git.dpdk.org/dpdk-kmods/snapshot/dpdk-kmods-e13d7af77a1bf98757f85c3c4083f6ee6d0d2372.tar.xz";
|
2021-06-07 12:46:07 +01:00
|
|
|
sha256 = "sha256-8ysWT3X3rIyUAo4/QbkX7cQq5iFeU18/BPsmmWugcIc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
|
|
|
|
2022-02-10 01:51:58 +00:00
|
|
|
makeFlags = kernel.makeFlags ++ [
|
|
|
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
|
|
|
];
|
2021-06-07 12:46:07 +01:00
|
|
|
KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
|
|
|
|
|
|
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
|
|
|
|
|
|
|
preBuild = "cd linux/igb_uio";
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-02-10 01:51:58 +00:00
|
|
|
make -C ${KSRC} M=$(pwd) modules_install $makeFlags
|
2021-06-07 12:46:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2022-05-23 13:01:28 +01:00
|
|
|
broken = kernel.kernelAtLeast "5.18";
|
2021-06-07 12:46:07 +01:00
|
|
|
};
|
|
|
|
}
|