dpdk-kmods: prepend kernel.makeFlags to makeFlags

This commit is contained in:
Nick Cao 2022-02-10 09:51:58 +08:00
parent 98bd4307a6
commit 694eef94d7
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
makeFlags = kernel.makeFlags ++ [
"INSTALL_MOD_PATH=${placeholder "out"}"
];
KSRC = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
nativeBuildInputs = kernel.moduleBuildDependencies;
@ -18,10 +21,9 @@ stdenv.mkDerivation rec {
preBuild = "cd linux/igb_uio";
installPhase = ''
make -C ${KSRC} M=$(pwd) modules_install
make -C ${KSRC} M=$(pwd) modules_install $makeFlags
'';
INSTALL_MOD_PATH = placeholder "out";
enableParallelBuilding = true;
meta = with lib; {