diff options
author | misuzu <bakalolka@gmail.com> | 2022-06-19 14:00:16 +0300 |
---|---|---|
committer | misuzu <bakalolka@gmail.com> | 2022-06-21 19:05:52 +0300 |
commit | 79e05fb16b1af292e50cc0c479809cc66b47b087 (patch) | |
tree | 43d13fa2a1117528d29590fb6eb308d9665c8471 /pkgs/os-specific | |
parent | fdb531e995876debe015712fe4b96464196def58 (diff) |
linux-kernel: disable BTF on 32-bit platforms on kernels 5.15+
It fails to build with `Failed to parse base BTF 'vmlinux': -22`
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index d8084bbfcccf1..649dc253b79d9 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -41,7 +41,8 @@ let (whenBetween "5.2" "5.18" yes) ]; DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT = whenAtLeast "5.18" yes; - DEBUG_INFO_BTF = whenAtLeast "5.2" (option yes); + # Disabled on 32-bit platforms, fails to build on 5.15+ with `Failed to parse base BTF 'vmlinux': -22` + DEBUG_INFO_BTF = whenAtLeast "5.2" (option (if stdenv.hostPlatform.is32bit && (versionAtLeast version "5.15") then no else yes)); BPF_LSM = whenAtLeast "5.7" (option yes); DEBUG_KERNEL = yes; DEBUG_DEVRES = no; |