From patchwork Thu Jul 18 09:12:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 260033 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 CE8582C0082 for ; Thu, 18 Jul 2013 19:12:41 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5A78A9C239; Thu, 18 Jul 2013 09:12:40 +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 ooPOY4dfkc9j; Thu, 18 Jul 2013 09:12:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DABEC9C228; Thu, 18 Jul 2013 09:12:39 +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 C68BE1BF9BF for ; Thu, 18 Jul 2013 09:12:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 48CEB8DA31 for ; Thu, 18 Jul 2013 09:12:39 +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 ufD8V54GG5RF for ; Thu, 18 Jul 2013 09:12:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 36BD88DAC3 for ; Thu, 18 Jul 2013 09:12:38 +0000 (UTC) Received: by mail-pb0-f50.google.com with SMTP id wz7so2944573pbc.37 for ; Thu, 18 Jul 2013 02:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=uV0+Pqq/tFd+7TvRXOtOasNkU4USsw92sKjYzHEJ7UY=; b=JRbB3xGfZFTbIH4QjAek5FkYml/45gHm8k+bokSeO0BlWAL0ixrx9rmKEKGv5G54yr C6rYMgZRtcG2dsheaPsdI2sZdFL/SsIJ4WDoL7YPiegrm3Z8VbZdugix7Hwdp333r8CI MfGpN7qhP73wDxD/3t+yF8q+540WF9CcmE4Xb5J6pAGuTKunIYurilsHJG+ajOZThrb4 OuU5ly5W7tMYsSYvcqyUy+g+Nj9ZAJN1hZkOVXLBlEMHpGnffNv8bkBzI9kDOkARJ9Sj t3L144IZG+gjiPJDxE9Uxjh/JmE0U4r6Dr9mW9u+IGAKcsqgNXWyl7C7RVsbIiU1a5m9 je5g== X-Received: by 10.68.234.72 with SMTP id uc8mr11168048pbc.35.1374138757976; Thu, 18 Jul 2013 02:12:37 -0700 (PDT) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id il4sm12627542pbb.36.2013.07.18.02.12.35 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Jul 2013 02:12:37 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Thu, 18 Jul 2013 11:12:25 +0200 Message-Id: <1374138746-23279-3-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1374138746-23279-1-git-send-email-fabio.porcedda@gmail.com> References: <1374138746-23279-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [PATCH v2 2/3] package: fix generic extract target for top-level parallel make 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 To be able to use top-level parallel make we must don't depend in a rule on the order of evaluation of the prerequisites, so instead of reling on the left to right ordering of evaluation of the prerequisites add an explicit rule to describe the dependencies. Add a rule to specify that the $(2)_TARGET_EXTRACT target depends on $(2)_TARGET_SOURCE target. Signed-off-by: Fabio Porcedda --- package/pkg-generic.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 668f011..f29ea99 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -391,8 +391,8 @@ $(1)-configure: $(1)-patch $(1)-depends \ $(1)-patch: $(1)-extract $$($(2)_TARGET_PATCH) -$(1)-extract: $(1)-source \ - $$($(2)_TARGET_EXTRACT) +$$($(2)_TARGET_EXTRACT): $$($(2)_TARGET_SOURCE) +$(1)-extract: $$($(2)_TARGET_EXTRACT) $(1)-depends: $$($(2)_DEPENDENCIES)