ena: pass makeFlags from kernel
This commit is contained in:
parent
694eef94d7
commit
07d1ce68d4
|
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
makeFlags = kernel.makeFlags;
|
||||||
|
|
||||||
# linux 3.12
|
# linux 3.12
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
|
||||||
|
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
strip -S ena.ko
|
$STRIP -S ena.ko
|
||||||
dest=$out/lib/modules/${kernel.modDirVersion}/misc
|
dest=$out/lib/modules/${kernel.modDirVersion}/misc
|
||||||
mkdir -p $dest
|
mkdir -p $dest
|
||||||
cp ena.ko $dest/
|
cp ena.ko $dest/
|
||||||
|
|
Loading…
Reference in a new issue