can-isotp: make use of buildFlags and installTargets
This commit is contained in:
parent
b0d43c3409
commit
cdfe6962e9
1 changed files with 3 additions and 7 deletions
|
@ -12,18 +12,14 @@ stdenv.mkDerivation {
|
|||
rev = "21a3a59e2bfad246782896841e7af042382fcae7";
|
||||
sha256 = "1laax93czalclg7cy9iq1r7hfh9jigh7igj06y9lski75ap2vhfq";
|
||||
};
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
make modules $makeFlags
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make modules_install $makeFlags
|
||||
'';
|
||||
buildFlags = [ "modules" ];
|
||||
installTargets = [ "modules_install" ];
|
||||
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
|
|
Loading…
Reference in a new issue