diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index ec2b2f38795..cee2197f3c7 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -37,7 +37,12 @@ with stdenv.lib; DEBUG_STACKOVERFLOW n SCHEDSTATS n DETECT_HUNG_TASK y - DEBUG_INFO n # Not until we implement a separate debug output + + ${if (features.debug or false) then '' + DEBUG_INFO y + '' else '' + DEBUG_INFO n + ''} ${optionalString (versionOlder version "4.4") '' CPU_NOTIFIER_ERROR_INJECT? n @@ -709,9 +714,5 @@ with stdenv.lib; DEBUG_MEMORY_INIT? y ''} - ${optionalString (features.debug or false) '' - DEBUG_INFO y - ''} - ${extraConfig} ''