ena: pass makeFlags from kernel

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

View file

@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
makeFlags = kernel.makeFlags;
# linux 3.12
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
strip -S ena.ko
$STRIP -S ena.ko
dest=$out/lib/modules/${kernel.modDirVersion}/misc
mkdir -p $dest
cp ena.ko $dest/