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.
This commit is contained in:
K900 2022-08-02 15:23:29 +03:00
parent 93bf6fcaaa
commit 6cd9a388df

View file

@ -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"