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:
parent
93bf6fcaaa
commit
6cd9a388df
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue