v4l2loopback: prepend kernel.makeFlags to makeFlags and some cleanup
This commit is contained in:
parent
d3943a84af
commit
0b302ffa47
|
@ -16,12 +16,9 @@ stdenv.mkDerivation rec {
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
|
substituteInPlace Makefile --replace "modules_install" "INSTALL_MOD_PATH=$out modules_install"
|
||||||
sed -i '/depmod/d' Makefile
|
sed -i '/depmod/d' Makefile
|
||||||
export PATH=${kmod}/sbin:$PATH
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
buildInputs = [ kmod ];
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
make install-utils PREFIX=$bin
|
make install-utils PREFIX=$bin
|
||||||
|
@ -29,7 +26,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
outputs = [ "out" "bin" ];
|
outputs = [ "out" "bin" ];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = kernel.makeFlags ++ [
|
||||||
"KERNELRELEASE=${kernel.modDirVersion}"
|
"KERNELRELEASE=${kernel.modDirVersion}"
|
||||||
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
"KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue