Merge pull request #69055 from dtzWill/feature/fwts-efi-runtime
linuxPackages.fwts-efi-runtime: init
This commit is contained in:
commit
b51fbeb77c
31
pkgs/os-specific/linux/fwts/module.nix
Normal file
31
pkgs/os-specific/linux/fwts/module.nix
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{ stdenv, fwts, kernel }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "fwts-efi-runtime";
|
||||||
|
version = "${fwts.version}-${kernel.version}";
|
||||||
|
|
||||||
|
inherit (fwts) src;
|
||||||
|
|
||||||
|
sourceRoot = "source/efi_runtime";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile --replace \
|
||||||
|
'/lib/modules/$(KVER)/build' \
|
||||||
|
'${kernel.dev}/lib/modules/${kernel.modDirVersion}/build'
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||||
|
|
||||||
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
inherit (fwts.meta) homepage license;
|
||||||
|
description = fwts.meta.description + "(efi-runtime kernel module)";
|
||||||
|
maintainers = with maintainers; [ dtzWill ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -15929,6 +15929,8 @@ in
|
|||||||
|
|
||||||
evdi = callPackage ../os-specific/linux/evdi { };
|
evdi = callPackage ../os-specific/linux/evdi { };
|
||||||
|
|
||||||
|
fwts-efi-runtime = callPackage ../os-specific/linux/fwts/module.nix { };
|
||||||
|
|
||||||
hyperv-daemons = callPackage ../os-specific/linux/hyperv-daemons { };
|
hyperv-daemons = callPackage ../os-specific/linux/hyperv-daemons { };
|
||||||
|
|
||||||
e1000e = if stdenv.lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
e1000e = if stdenv.lib.versionOlder kernel.version "4.10" then callPackage ../os-specific/linux/e1000e {} else null;
|
||||||
|
Loading…
Reference in New Issue
Block a user