diff options
author | K900 <me@0upti.me> | 2022-08-02 15:23:29 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2022-08-02 16:23:00 +0300 |
commit | 6cd9a388df901e016cce9fcfecfad5cda5710e30 (patch) | |
tree | 74e3583bb5fd94e727b552c15dd5cb45456e6897 /pkgs/os-specific/linux/kernel/generic.nix | |
parent | 93bf6fcaaa6b0225fb4e6867ffcf9f876a94d6ec (diff) |
linux: provide pahole when configuring
The kernel checks the version of pahole at configuration time to know if it supports features like split BTFs. If pahole doesn't exist, all of that gets disabled in the config file, so the kernel ends up built without split BTFs, despite having a working pahole for the actual build.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/generic.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index bca6554ca2ae5..056544014f420 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -6,6 +6,7 @@ , gmp ? null , libmpc ? null , mpfr ? null +, pahole , lib , stdenv @@ -124,7 +125,8 @@ let depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ perl gmp libmpc mpfr ] - ++ lib.optionals (lib.versionAtLeast version "4.16") [ bison flex ]; + ++ lib.optionals (lib.versionAtLeast version "4.16") [ bison flex ] + ++ lib.optional (lib.versionAtLeast version "5.2") pahole; platformName = stdenv.hostPlatform.linux-kernel.name; # e.g. "defconfig" |