From patchwork Sun Mar 29 07:35:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 455727 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 46E3F1400DE for ; Sun, 29 Mar 2015 18:35:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=Rnldl2MB; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EBF23A29A6; Sun, 29 Mar 2015 07:35:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1m-mwlzDTTuc; Sun, 29 Mar 2015 07:35:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 16DB0A2916; Sun, 29 Mar 2015 07:35:43 +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 805D81C22EF for ; Sun, 29 Mar 2015 07:35:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7BE6C94EEF for ; Sun, 29 Mar 2015 07:35:41 +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 NYLHv7GNKoOq for ; Sun, 29 Mar 2015 07:35:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by hemlock.osuosl.org (Postfix) with ESMTPS id 07F9994F1E for ; Sun, 29 Mar 2015 07:35:39 +0000 (UTC) Received: by wgra20 with SMTP id a20so138994629wgr.3 for ; Sun, 29 Mar 2015 00:35:37 -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; bh=2n65FaeQkI5yHHeKmQ9St1MJi29FqOIAnUn5mO4Ls+U=; b=Rnldl2MBH4Gz1JcNr/jpjPiJManSuewoyWQFtNHqvPHw+rfwCUs9NoZtJmwNYr+d+j pBjvUAnD5nQq5IfTQc9pif6dVs3fGuCLKI16nS7R8a7SxvEouZBEjIdEeQfVa8B6fP7j VkEf+uDBQBYVGOVc0w8R6JtSsNyfXcL7tcOdkc8wiuqi0+r+1iA4wadYATAONbykaUT9 5gBZqDEquxVyPdxr4FR2aD7+JsssBQiizDxRF7peoJOPSVJTc3s54ts2B/ZeWhTPyGTn ybQZKfQ4aCJsyuxnfGiCat5xJG/EnWZXACkyowrQ7WrA1E7ErwXQFk7g3D2TVE/8Ri9u 4jVw== X-Received: by 10.180.198.37 with SMTP id iz5mr11052698wic.95.1427614537396; Sun, 29 Mar 2015 00:35:37 -0700 (PDT) Received: from beast.localdomain (dynamic-adsl-78-15-148-113.clienti.tiscali.it. [78.15.148.113]) by mx.google.com with ESMTPSA id pa4sm10146462wjb.11.2015.03.29.00.35.35 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2015 00:35:36 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Sun, 29 Mar 2015 09:35:33 +0200 Message-Id: <1427614534-32460-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.3.4 Cc: Bernd Kuhls , Pieter De Gendt , "Wojciech M. Zabolotny" , "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/2] jack2: use -j only when is PARALLEL_JOBS is defined 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" When top-level parallel makefile is being used the PARALLEL_JOBS is empty but the build system of jack2 does not accept a -j without an argument so don't use the -j option when PARALLEL_JOBS is empty. Fix build failure: waf: error: -j option requires an argument make: *** [/home/tetsuya/buildroot/br2/output/build/jack2-ab409a65df95bc261ff72b52d6b3f4a65cf3266a/.stamp_built] Error 2 Signed-off-by: Fabio Porcedda --- package/jack2/jack2.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/jack2/jack2.mk b/package/jack2/jack2.mk index 3f52ff4..a472df2 100644 --- a/package/jack2/jack2.mk +++ b/package/jack2/jack2.mk @@ -10,6 +10,10 @@ JACK2_LICENSE = GPLv2+ (jack server), LGPLv2.1+ (jack library) JACK2_DEPENDENCIES = libsamplerate libsndfile alsa-lib host-python JACK2_INSTALL_STAGING = YES +ifneq ($(PARALLEL_JOBS),) + JACK2_PARALLEL_JOBS = -j$(PARALLEL_JOBS) +endif + define JACK2_CONFIGURE_CMDS (cd $(@D); \ $(TARGET_CONFIGURE_OPTS) \ @@ -20,7 +24,8 @@ define JACK2_CONFIGURE_CMDS endef define JACK2_BUILD_CMDS - (cd $(@D); $(HOST_DIR)/usr/bin/python2 ./waf build -j $(PARALLEL_JOBS)) + (cd $(@D); $(HOST_DIR)/usr/bin/python2 \ + ./waf build $(JACK2_PARALLEL_JOBS)) endef define JACK2_INSTALL_TARGET_CMDS