forked from mirrors/nixpkgs
* Remove the systemtap option from linux-2.6.32.nix and use
extraConfig instead. svn path=/nixpkgs/trunk/; revision=23720
This commit is contained in:
parent
193799ec3d
commit
9ff5c12798
|
@ -1,11 +1,10 @@
|
|||
{ stdenv, fetchurl, userModeLinux ? false, systemtap ? false
|
||||
, extraConfig ? "", ... } @ args:
|
||||
{ stdenv, fetchurl, extraConfig ? "", ... } @ args:
|
||||
|
||||
let
|
||||
configWithPlatform = kernelPlatform :
|
||||
configWithPlatform = kernelPlatform:
|
||||
''
|
||||
# Don't include any debug features.
|
||||
DEBUG_KERNEL ${if systemtap then "y" else "n"}
|
||||
DEBUG_KERNEL n
|
||||
|
||||
# Support drivers that need external firmware.
|
||||
STANDALONE n
|
||||
|
@ -25,6 +24,7 @@ let
|
|||
|
||||
# Disable some expensive (?) features.
|
||||
FTRACE n
|
||||
KPROBES n
|
||||
NUMA? n
|
||||
PM_TRACE_RTC n
|
||||
|
||||
|
@ -190,14 +190,6 @@ let
|
|||
X86_CHECK_BIOS_CORRUPTION y
|
||||
X86_MCE y
|
||||
|
||||
${if systemtap then ''
|
||||
# SystemTap support.
|
||||
KPROBES y # kernel probes (needs `utrace' for process probes)
|
||||
DEBUG_INFO y
|
||||
RELAY y
|
||||
DEBUG_FS y
|
||||
'' else ""}
|
||||
|
||||
${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
|
||||
${extraConfig}
|
||||
'';
|
||||
|
|
|
@ -4473,7 +4473,14 @@ let
|
|||
|
||||
linux_2_6_32_systemtap = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.32.nix) {
|
||||
inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser;
|
||||
systemtap = true;
|
||||
extraConfig =
|
||||
''
|
||||
DEBUG_KERNEL y
|
||||
KPROBES y # kernel probes (needs `utrace' for process probes)
|
||||
DEBUG_INFO y
|
||||
RELAY y
|
||||
DEBUG_FS y
|
||||
'';
|
||||
dontStrip = true;
|
||||
kernelPatches =
|
||||
[ kernelPatches.fbcondecor_2_6_31
|
||||
|
|
Loading…
Reference in a new issue