Normalize config-only kernel patches

This commit is contained in:
TheK0tYaRa 2026-03-17 23:59:23 +02:00
parent 40bcae409d
commit 2a93c20be2

View file

@ -17,6 +17,8 @@
let
makefile = builtins.readFile "${kernel-src}/Makefile";
lines = lib.splitString "\n" makefile;
normalizeKernelPatch = p: p // { patch = p.patch or null; };
kernelPatches' = map normalizeKernelPatch kernelPatches;
get =
name:
@ -118,7 +120,8 @@ in
buildLinux (
args
// {
inherit kernelPatches extraConfig;
kernelPatches = kernelPatches';
inherit extraConfig;
version = kver;
modDirVersion = kver;