From patchwork Tue Jun 12 02:09:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Lynch X-Patchwork-Id: 164307 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 9D42FB6FC8 for ; Tue, 12 Jun 2012 12:17:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 30AE631DAC; Tue, 12 Jun 2012 02:17:39 +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 LklUwXsiqP-N; Tue, 12 Jun 2012 02:17:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 46A9B31D92; Tue, 12 Jun 2012 02:17:34 +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 46A4F8F753 for ; Tue, 12 Jun 2012 02:17:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3DB958A9E6 for ; Tue, 12 Jun 2012 02:17:15 +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 PoEU2skSsFwu for ; Tue, 12 Jun 2012 02:17:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sasl.smtp.pobox.com (a-pb-sasl-sd.pobox.com [74.115.168.62]) by whitealder.osuosl.org (Postfix) with ESMTP id 101228A9FB for ; Tue, 12 Jun 2012 02:17:08 +0000 (UTC) Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 7FF56AF3C for ; Mon, 11 Jun 2012 22:09:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references; s=sasl; bh=kT99 GH8bzXwgRDNVl6YJkRrzGs4=; b=ibDvDiGMVnzKXR9cBVGrDMngbp4weQZSwh7J aBgIiHBBn26zfCxfd2P4GpLW7KjdjwVQWtbjgQC6YMbwcbCgnFPIc5xqHKWSNjv4 ZTb5be8GNv9kLDt6PvfP1tESmrTrsy6/a3YdQnF3JR2DKckAV0Sl/zrOZ+8L3fNT i2yGs34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :date:message-id:in-reply-to:references; q=dns; s=sasl; b=KmZjgp Rw2Z+7nWNeK99a/hkJu6OXo+nncb/699rM3LuhIt2YEqiC1YS+Q+hnCLpiOAY+Ik /r0oyoQDjvS1gVIT4KPk87ftLaBF9IjSwFkeLKH4AdJxU3uujKAIoi88OvW6r0wx jObBfahMn62jJMpROE78oVPtnCYXEYPFyLBNU= Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 77F4DAF3B for ; Mon, 11 Jun 2012 22:09:46 -0400 (EDT) Received: from orca.stoopid.dyndns.org (unknown [99.12.192.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id E22B9AF39 for ; Mon, 11 Jun 2012 22:09:44 -0400 (EDT) From: Nathan Lynch To: buildroot@busybox.net Date: Mon, 11 Jun 2012 21:09:37 -0500 Message-Id: <1339466983-19786-2-git-send-email-ntl@pobox.com> X-Mailer: git-send-email 1.7.6.5 In-Reply-To: <1339466983-19786-1-git-send-email-ntl@pobox.com> References: <1339466983-19786-1-git-send-email-ntl@pobox.com> X-Pobox-Relay-ID: AE66E670-B433-11E1-9D35-8DF2579FE65A-04752483!a-pb-sasl-sd.pobox.com Subject: [Buildroot] [PATCH 1/7] introduce PARALLEL_JOBS build system variable X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net BR2_JLEVEL currently is expanded directly in $(MAKE), and used in invocations of other build software (e.g. ct-ng). However, we are going to allow "0" to be a meaningful value for BR2_JLEVEL, which won't work for these uses. Given that it is not permissible to modify BR2_-prefixed variables in Makefiles, we need an intermediate variable. Define PARALLEL_JOBS to $(BR2_JLEVEL), and use the former in MAKE's definition. Uses of BR2_JLEVEL throughout the rest of the tree to be adjusted similarly in follow-up patches. Signed-off-by: Nathan Lynch --- package/Makefile.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/package/Makefile.in b/package/Makefile.in index df7042c..9177a1b 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -6,8 +6,10 @@ HOSTMAKE=$(MAKE) endif HOSTMAKE :=$(shell which $(HOSTMAKE) || type -p $(HOSTMAKE) || echo make) +PARALLEL_JOBS:=$(BR2_JLEVEL) + MAKE1:=$(HOSTMAKE) -j1 -MAKE:=$(HOSTMAKE) -j$(BR2_JLEVEL) +MAKE:=$(HOSTMAKE) -j$(PARALLEL_JOBS) # Compute GNU_TARGET_NAME and REAL_GNU_TARGET_NAME GNU_TARGET_NAME=$(ARCH)-linux