fix(kernel): compress kernel modules (different config method)

source:
88746a7943 (diff-764a10a0418846e85912fafd206b2502db65dbbd8c59adc0532b50d05c438d21R993-R998)
This commit is contained in:
steveej 2024-10-11 22:37:09 +02:00
parent 3a60edd147
commit f691c12548

View file

@ -13,17 +13,12 @@ let
// {
modDirVersion = version;
kernelPatches = (args.kernelPatches or [ ]) ++ [
{
name = "compress-kernel-modules";
patch = null;
extraConfig = ''
MODULE_COMPRESS y
MODULE_COMPRESS_ALL y
MODULE_COMPRESS_XZ y
'';
}
];
structuredExtraConfig = with lib.kernel; {
MODULE_COMPRESS = yes;
MODULE_COMPRESS_ALL = yes;
MODULE_COMPRESS_XZ = yes;
};
extraMeta.branch = lib.versions.majorMinor version;
}
);