diff options
Diffstat (limited to 'pkgs/os-specific/linux/kernel/perf.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/perf.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix index e3dbba0e76e5..96927bf4be92 100644 --- a/pkgs/os-specific/linux/kernel/perf.nix +++ b/pkgs/os-specific/linux/kernel/perf.nix @@ -11,7 +11,7 @@ assert versionAtLeast kernel.version "3.12"; stdenv.mkDerivation { name = "perf-linux-${kernel.version}"; - inherit (kernel) src; + inherit (kernel) src makeFlags; preConfigure = '' cd tools/perf @@ -39,10 +39,6 @@ stdenv.mkDerivation { "-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation" ]; - makeFlags = if stdenv.hostPlatform == stdenv.buildPlatform - then null - else "CROSS_COMPILE=${stdenv.cc.targetPrefix}"; - installFlags = "install install-man ASCIIDOC8=1"; preFixup = '' @@ -50,6 +46,9 @@ stdenv.mkDerivation { --prefix PATH : "${binutils}/bin" ''; + + patches = optional (hasPrefix "4.9" kernel.version) [ ./perf-tools-fix-build-with-arch-x86_64.patch ]; + meta = { homepage = https://perf.wiki.kernel.org/; description = "Linux tools to profile with performance counters"; |