git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40419 from oxij/pkgs/fix-linux-debug

linuxPackages.kernel: config: fix DEBUG_INFO setting

commit5a6d202a43d0c81e11a5bad6b70b4eee27319710 authorJan Malakhovski <oxij@oxij.org> dateWed 16 May 2018, 05:56 (9 years ago) parent5efda04
1 file changed+6−5
pkgs/os-specific/linux/kernel/common-config.nix+6−5
pkgs/os-specific/linux/kernel/common-config.nix+6−5
@@ -37,7 +37,12 @@ with stdenv.lib;
3737 DEBUG_STACKOVERFLOW n
3838 SCHEDSTATS n
3939 DETECT_HUNG_TASK y
40− DEBUG_INFO n # Not until we implement a separate debug output
40+
41+ ${if (features.debug or false) then ''
42+ DEBUG_INFO y
43+ '' else ''
44+ DEBUG_INFO n
45+ ''}
4146
4247 ${optionalString (versionOlder version "4.4") ''
4348 CPU_NOTIFIER_ERROR_INJECT? n
@@ -709,9 +714,5 @@ with stdenv.lib;
709714 DEBUG_MEMORY_INIT? y
710715 ''}
711716
712− ${optionalString (features.debug or false) ''
713− DEBUG_INFO y
714− ''}
715−
716717 ${extraConfig}
717718''