uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
31
pkgs/os-specific/linux/fwts/module.nix
Normal file
31
pkgs/os-specific/linux/fwts/module.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ lib, 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 = kernel.makeFlags ++ [
|
||||
"INSTALL_MOD_PATH=${placeholder "out"}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
inherit (fwts.meta) homepage license;
|
||||
description = fwts.meta.description + "(efi-runtime kernel module)";
|
||||
maintainers = with maintainers; [ dtzWill ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue