kernel-builder: Fix randstruct for 5.19
@@ -217,7 +217,8 @@ stdenv.mkDerivation (inputArgs // {
patches =
map (p: p.patch) kernelPatches
# Required for deterministic builds along with some postPatch magic.
- ++ optional (lib.versionAtLeast version "4.13") (nixosKernelPath + "/randstruct-provide-seed.patch")
+ ++ optional ((lib.versionAtLeast version "4.13" && lib.versionOlder version "5.19")) (nixosKernelPath + "/randstruct-provide-seed.patch")
+ ++ optional ((lib.versionAtLeast version "5.19")) (nixosKernelPath + "/randstruct-provide-seed-5.19.patch")
++ optional (enableDefaultYYLOCPatch && lib.versionOlder version "4.0") ./gcc10-extern_YYLOC_global_declaration.patch
++ patches
;
