summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2015-03-19 00:19:25 -0700
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-19 13:36:31 +0100
commit08e786536ba2b81d13e5b8319767c9b34f817f9a (patch)
treedd4099e065d19d5f43549000a83bb0f62aa59b3e
parent4237a1f786def8b03ffd054aa0f151bf73a6b4cb (diff)
downloadbuildroot-08e786536ba2b81d13e5b8319767c9b34f817f9a.tar.gz
buildroot-08e786536ba2b81d13e5b8319767c9b34f817f9a.zip
package/perf: fix build failures with high 'make -j' values
The 'perf' Makefile is flaky on some kernel versions. It will still parallelize the build even with 'make -j1' because it explicitly invokes a sub-make with the correct flags. But the top-level make is not smart enough to handle large '-j' values. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/perf/perf.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/perf/perf.mk b/package/perf/perf.mk
index 1fcc25863f..bbdcc5abff 100644
--- a/package/perf/perf.mk
+++ b/package/perf/perf.mk
@@ -53,14 +53,14 @@ define PERF_BUILD_CMDS
fi \
fi \
fi
- $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/perf \
+ $(TARGET_MAKE_ENV) $(MAKE1) -C $(LINUX_DIR)/tools/perf \
$(PERF_MAKE_FLAGS) O=$(@D)
endef
# After installation, we remove the Perl and Python scripts from the
# target.
define PERF_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/perf \
+ $(TARGET_MAKE_ENV) $(MAKE1) -C $(LINUX_DIR)/tools/perf \
$(PERF_MAKE_FLAGS) O=$(@D) install
$(RM) -rf $(TARGET_DIR)/usr/libexec/perf-core/scripts/
endef
OpenPOWER on IntegriCloud