diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2022-07-09 10:29:40 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2022-07-09 10:29:40 +0900 |
commit | 47f9f047883996aa54defa9cda7ccd7e04df7901 (patch) | |
tree | 30c17f47c018f1197bb862643d62b8bd0e91a375 /pkgs/os-specific/linux/kernel/common-config.nix | |
parent | 9cd306c9eb5b47a44c3a76971eca0938ecfead15 (diff) | |
download | nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar.gz nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar.bz2 nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar.lz nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar.xz nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.tar.zst nixpkgs-47f9f047883996aa54defa9cda7ccd7e04df7901.zip |
linux-kernel config: disable DEBUG_INFO_REDUCED
Linux's aarch64 defconfig has been updated in 5.13 to enable "reduced" debug infos (upstream commit ed938a4bfc58 ("arm64: defconfig: Use DEBUG_INFO_REDUCED"), but that commits locks DEBUG_INFO_BTF as noticed in #175467 This disables it back which should fix bpftrace usage of BTF not working on newer kernels.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 5f0d5d38099..59f89296dcd 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -41,6 +41,9 @@ let (whenBetween "5.2" "5.18" yes) ]; DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT = whenAtLeast "5.18" yes; + # Reduced debug info conflict with BTF and have been enabled in + # aarch64 defconfig since 5.13 + DEBUG_INFO_REDUCED = whenAtLeast "5.13" (option no); # 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); |