diff options
author | Naïm Favier <n@monade.li> | 2022-12-21 12:49:37 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-12-21 13:23:28 +0100 |
commit | fc346c5e6282c8e5a4115da7420505a2fbdd3d12 (patch) | |
tree | 137f654d113d3c17245110572e636bcf3246ee7f /pkgs/os-specific/linux/kernel/manual-config.nix | |
parent | 03554797153aa90263161784c296ef6518af3358 (diff) |
linux: use `lib.versions.pad` for `modDirVersion`
Diffstat (limited to 'pkgs/os-specific/linux/kernel/manual-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/manual-config.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index edfd1f7dbc28a..1ba5495fc90e7 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -22,8 +22,9 @@ in { pos ? null, # Additional kernel make flags extraMakeFlags ? [], - # The version of the kernel module directory - modDirVersion ? version, + # The name of the kernel module directory + # Needs to be X.Y.Z[-extra], so pad with zeros if needed. + modDirVersion ? lib.versions.pad 3 version, # The kernel source (tarball, git checkout, etc.) src, # a list of { name=..., patch=..., extraConfig=...} patches @@ -36,7 +37,7 @@ in { # Custom seed used for CONFIG_GCC_PLUGIN_RANDSTRUCT if enabled. This is # automatically extended with extra per-version and per-config values. randstructSeed ? "", - # Use defaultMeta // extraMeta + # Extra meta attributes extraMeta ? {}, # for module compatibility |