Skip to content

Commit

Permalink
hp-omen-linux-module: fix for 6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Dec 19, 2024
1 parent 45f5260 commit 318948c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion configs/victus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
};
patches = [ (patch /kvmfr/string-literal-symbol-namespace.patch) ];
}))
#hp-omen-linux-module
hp-omen-linux-module
ryzen-smu
];

Expand Down
26 changes: 18 additions & 8 deletions pkgs/hp-omen-linux-module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,24 @@ stdenv.mkDerivation (finalAttrs: {

nativeBuildInputs = kernel.moduleBuildDependencies;

makeFlags = kernel.makeFlags ++ [
"-C"
"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"M=$(sourceRoot)"
"VERSION=${finalAttrs.version}"
makeFlags = [
#"TARGET=${kernel.modDirVersion}"
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
#"-C"
#"${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
#"M=$(sourceRoot)"
#"VERSION=${finalAttrs.version}"
];

buildFlags = [ "modules" ];
installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
installTargets = [ "modules_install" ];
installPhase = ''
runHook preInstall
install hp-wmi.ko -Dm444 -t $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/platform/x86/hp/
runHook postInstall
'';

#buildFlags = [ "modules" ];
#installFlags = [ "INSTALL_MOD_PATH=${placeholder "out"}" ];
#installTargets = [ "modules_install" ];
})

0 comments on commit 318948c

Please sign in to comment.