summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2018-01-15 12:47:08 -0500
committerBen Wolsieffer <benwolsieffer@gmail.com>2018-01-15 12:48:56 -0500
commit92083c3f404620b1e0260946f3330848fdbc1e6b (patch)
tree878fb895d5901dd76a8887bf358da5a5e6f4c80f /pkgs/os-specific/linux/kernel
parent285181a1db49a9b95210ac939a1b827866b0ef29 (diff)
downloadnixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar.gz
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar.bz2
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar.lz
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar.xz
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.tar.zst
nixpkgs-92083c3f404620b1e0260946f3330848fdbc1e6b.zip
perf: inherit makeFlags from kernel
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/perf.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/perf.nix b/pkgs/os-specific/linux/kernel/perf.nix
index fd21464a219..5f79e1b2cac 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
@@ -40,10 +40,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.prefix}";
-
   installFlags = "install install-man ASCIIDOC8=1";
 
   preFixup = ''