From patchwork Thu Mar 19 07:19:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Noonan X-Patchwork-Id: 451760 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 2992C14010F for ; Thu, 19 Mar 2015 18:19:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 39B8C3393E; Thu, 19 Mar 2015 07:19:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ppuja+TrRbfZ; Thu, 19 Mar 2015 07:19:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0A3F133739; Thu, 19 Mar 2015 07:19:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BB3E41C2354 for ; Thu, 19 Mar 2015 07:19:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B797B91FA9 for ; Thu, 19 Mar 2015 07:19:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GsnOkHQfAL75 for ; Thu, 19 Mar 2015 07:19:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by whitealder.osuosl.org (Postfix) with ESMTPS id 236BD91F9A for ; Thu, 19 Mar 2015 07:19:31 +0000 (UTC) Received: by pdbcz9 with SMTP id cz9so67810198pdb.3 for ; Thu, 19 Mar 2015 00:19:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5xIsgEf3b7PTU5VuWXdL87gtEMzgZmAfbiDdjbum99Y=; b=hYJ2RX0qtbzMoteFpdrIXDmiby5Mt3FPmpXDqvc1fYng3mj3NYjPEnKQlzU99FQYts K5XwmJsfs09QymTzbZpl21DSXRbNs7VVKCa4ojDJGloPMrapskEZ7FI5LtlvOpbnc4pa URNaBtNjJqlv4XBSSQ1BdBFM0VSrCZVrfF3TYG6j6FKmScwUc9MVcpSnhm1wnApnsC40 WuE9Ju+EI2LBNjZRw+PuwL2VmscspCi19iyw/4Xn4oLAg7NqdI1L4qQ4VCic1yjVSS5d vkB+pWrM2LCG0tWbvMQ28TLXnG+wOYkZIwYUuAmkrMxOJRAFoNjM4JxthHqFKTDLsyUF MrUA== X-Gm-Message-State: ALoCoQkNIF1ed4McXT1vbJfdFndFjGfDu+7seDlULN6WVPYwfuxtjdocQWfzJRIhnAKeuSSHIypE X-Received: by 10.66.97.7 with SMTP id dw7mr170681698pab.56.1426749570882; Thu, 19 Mar 2015 00:19:30 -0700 (PDT) Received: from steven@uplinklabs.net ([104.152.107.133]) by mx.google.com with ESMTPSA id um16sm1261042pab.7.2015.03.19.00.19.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2015 00:19:29 -0700 (PDT) Received: by steven@uplinklabs.net (sSMTP sendmail emulation); Thu, 19 Mar 2015 00:19:27 -0700 From: Steven Noonan To: buildroot@busybox.net Date: Thu, 19 Mar 2015 00:19:25 -0700 Message-Id: <1426749565-3888-1-git-send-email-steven@uplinklabs.net> X-Mailer: git-send-email 2.3.3 Subject: [Buildroot] [PATCH v2] package/perf: fix build failures with high 'make -j' values X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- v2: - Use $(MAKE1) instead of appending '-j1' to PERF_MAKE_FLAGS. package/perf/perf.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/perf/perf.mk b/package/perf/perf.mk index 1fcc258..bbdcc5a 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