rtw89: prepend kernel.makeFlags to makeFlags, pass moduleBuildDependencies

This commit is contained in:
Nick Cao 2022-02-10 10:52:40 +08:00
parent 123882b6aa
commit b046f22da2
No known key found for this signature in database
GPG key ID: 068A56CEF48FA2C1

View file

@ -14,7 +14,8 @@ stdenv.mkDerivation {
sha256 = "0cvawyi1ksw9xkr8pzwipsl7b8hnmrb17w5cblyicwih8fqaw632";
};
makeFlags = [ "KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags ++ [ "KSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
enableParallelBuilding = true;