From patchwork Thu Oct 3 12:10:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 280294 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id A25982C00A1 for ; Thu, 3 Oct 2013 22:18:42 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4C5218D4A8; Thu, 3 Oct 2013 12:18:41 +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 KQqC+uQVPToG; Thu, 3 Oct 2013 12:18:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4832D8C7F4; Thu, 3 Oct 2013 12:18:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A20891BFA5F for ; Thu, 3 Oct 2013 12:18:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9629793BC8 for ; Thu, 3 Oct 2013 12:18:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3UoO-nbjgtGH for ; Thu, 3 Oct 2013 12:18:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by hemlock.osuosl.org (Postfix) with ESMTPS id D340F93BC6 for ; Thu, 3 Oct 2013 12:18:36 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id rq2so2376473pbb.19 for ; Thu, 03 Oct 2013 05:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DvG/F0HUe1fd4eNdBsjxUvTqfh9u8mloAZoiaOcvsEA=; b=a/VMvU52YV7t48zvSCZhieO8W+yPiGMpd3T6xxaGzEkZvEdNPxKmFCJe0SjinzkThD SmuO/fzf1rL3AUCcJt8iWxu85J9nCWK2Cti+ijimWhSFqTZvDRfMEDmywXK/Z+CylSko MGYbxt8dIYLtaRw5J9v40oJFfpLZXFAW/8UrLCN4tHeLFauyx0rZG9PiC7Jf7wJbJ4LW xU08Gt/pkz0VQlsb7H4lIPWbRulhmrTZWK+zNeGKbd1a5j+sMyXdbstiT94yTVaHg7J+ CNzhw+qbjNS2ByryUrKRnxeFEB3xUjiWYQA9wcVhFJDMPtjir7TqIISJ/GlE4C5BeLp6 1h3A== X-Received: by 10.66.119.172 with SMTP id kv12mr9006688pab.34.1380802259733; Thu, 03 Oct 2013 05:10:59 -0700 (PDT) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id kd1sm10223154pab.20.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 05:10:59 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Thu, 3 Oct 2013 14:10:42 +0200 Message-Id: <1380802245-16978-4-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1380802245-16978-1-git-send-email-fabio.porcedda@gmail.com> References: <1380802245-16978-1-git-send-email-fabio.porcedda@gmail.com> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v7 3/6] package/Makefile.in: don't force jobs when BR2_JLEVEL is empty 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 When the "BR2_JLEVEL" variable is empty use "make" without the "-j" option, because to be able to use top-level parallel make we must don't force the number of jobs in sub-make. Example: make BR2_JLEVEL= -j8 Signed-off-by: Fabio Porcedda Acked-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Thomas Petazzoni --- package/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Makefile.in b/package/Makefile.in index 170ad78..d406901 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -18,7 +18,7 @@ PARALLEL_JOBS:=$(BR2_JLEVEL) endif MAKE1:=$(HOSTMAKE) -j1 -MAKE:=$(HOSTMAKE) -j$(PARALLEL_JOBS) +MAKE:=$(HOSTMAKE) $(if $(PARALLEL_JOBS),-j$(PARALLEL_JOBS)) # Compute GNU_TARGET_NAME GNU_TARGET_NAME=$(ARCH)-buildroot-$(TARGET_OS)-$(LIBC)$(ABI)