mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
mnt/reform: stop doing ifd
This commit is contained in:
parent
ec18896955
commit
f34ca8045a
1 changed files with 17 additions and 12 deletions
|
|
@ -34,18 +34,23 @@ let
|
||||||
hash = "sha256-XiTuH40b3VJqzwygZzU0FcvMDj41Rq6IsMbm+3+QxDY=";
|
hash = "sha256-XiTuH40b3VJqzwygZzU0FcvMDj41Rq6IsMbm+3+QxDY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
kernelPatches =
|
# Use postPatch to apply patches from a directory without IFD
|
||||||
(map (patch: { inherit patch; }) (
|
postPatch = ''
|
||||||
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}"
|
for patch in ${reformDebianPackages}/linux/patches${lib.versions.majorMinor modDirVersion}/*/*.patch; do
|
||||||
))
|
echo "Applying patch: $patch"
|
||||||
++ [
|
patch -p1 < "$patch"
|
||||||
{
|
done
|
||||||
patch = callPackage ./dtsPatch.nix {
|
'';
|
||||||
inherit reformDebianPackages;
|
|
||||||
kernelSource = src;
|
kernelPatches = [
|
||||||
};
|
{
|
||||||
}
|
name = "reform-dts";
|
||||||
];
|
patch = callPackage ./dtsPatch.nix {
|
||||||
|
inherit reformDebianPackages;
|
||||||
|
kernelSource = src;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
structuredExtraConfig = with lib.kernel; {
|
structuredExtraConfig = with lib.kernel; {
|
||||||
# configuration options from https://source.mnt.re/reform/reform-debian-packages/-/blob/7f31ba3a6742d60d8d502c1d86e63ef5df3916bf/linux/config
|
# configuration options from https://source.mnt.re/reform/reform-debian-packages/-/blob/7f31ba3a6742d60d8d502c1d86e63ef5df3916bf/linux/config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue