summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2023-03-20 20:42:10 +0100
committerGitHub <noreply@github.com>2023-03-20 20:42:10 +0100
commite999433b3a169306e752d6732527db8dc78e142c (patch)
treebd4af5da0acf5de70466c0a4dff523b1229b8294 /pkgs/os-specific/linux/kernel/common-config.nix
parentfb243f0f35ebd29ad542ed9bd9400e6291ac3f8b (diff)
parentd57568fcad7e3a9364850cb1c25d7a34693c02d5 (diff)
downloadnixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar.gz
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar.bz2
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar.lz
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar.xz
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.tar.zst
nixpkgs-e999433b3a169306e752d6732527db8dc78e142c.zip
Merge pull request #221707 from NixOS/linuxManualConfig-unpack
linuxManualConfig: install GDB scripts
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 7f84c53d4d6..faa98ee8fe3 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -36,10 +36,7 @@ let
 
     debug = {
       # Necessary for BTF
-      DEBUG_INFO                = mkMerge [
-        (whenOlder "5.2" (if (features.debug or false) then yes else no))
-        (whenBetween "5.2" "5.18" yes)
-      ];
+      DEBUG_INFO                = 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
@@ -62,6 +59,8 @@ let
       SUNRPC_DEBUG              = yes;
       # Provide access to tunables like sched_migration_cost_ns
       SCHED_DEBUG               = yes;
+
+      GDB_SCRIPTS               = yes;
     };
 
     power-management = {