File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 3434 hash = "sha256-XiTuH40b3VJqzwygZzU0FcvMDj41Rq6IsMbm+3+QxDY=" ;
3535 } ;
3636
37- kernelPatches =
38- ( map ( patch : { inherit patch ; } ) (
39- lib . filesystem . listFilesRecursive "${ reformDebianPackages } /linux/patches${ lib . versions . majorMinor modDirVersion } "
40- ) )
41- ++ [
42- {
43- patch = callPackage ./dtsPatch.nix {
44- inherit reformDebianPackages ;
45- kernelSource = src ;
46- } ;
47- }
48- ] ;
37+ # Use postPatch to apply patches from a directory without IFD
38+ postPatch = ''
39+ for patch in ${ reformDebianPackages } /linux/patches${ lib . versions . majorMinor modDirVersion } /*/*.patch; do
40+ echo "Applying patch: $patch"
41+ patch -p1 < "$patch"
42+ done
43+ '' ;
44+
45+ kernelPatches = [
46+ {
47+ name = "reform-dts" ;
48+ patch = callPackage ./dtsPatch.nix {
49+ inherit reformDebianPackages ;
50+ kernelSource = src ;
51+ } ;
52+ }
53+ ] ;
4954
5055 structuredExtraConfig = with lib . kernel ; {
5156 # configuration options from https://source.mnt.re/reform/reform-debian-packages/-/blob/7f31ba3a6742d60d8d502c1d86e63ef5df3916bf/linux/config
You can’t perform that action at this time.
0 commit comments