From patchwork Thu Jul 18 09:12:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 260034 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 635702C0082 for ; Thu, 18 Jul 2013 19:12:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 78EDB9C377; Thu, 18 Jul 2013 09:12:42 +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 AFI2OL2WBQMX; Thu, 18 Jul 2013 09:12:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E8ABC9C386; Thu, 18 Jul 2013 09:12:41 +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 2859C1BF9BF for ; Thu, 18 Jul 2013 09:12:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1A99B936A5 for ; Thu, 18 Jul 2013 09:12:45 +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 IheR1eg0K7wf for ; Thu, 18 Jul 2013 09:12:44 +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 C674B9373B for ; Thu, 18 Jul 2013 09:12:44 +0000 (UTC) Received: by mail-pb0-f46.google.com with SMTP id rq2so2954251pbb.33 for ; Thu, 18 Jul 2013 02:12:40 -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=0gDKsxOExKR+tp0XEqCYgI+Fl5GZXf5Qb6tSHnfJGXM=; b=ad8S5vSeZ4FehuV/+wBWZquWrzUpY3EMu6tf59I/55AGd9fvBpBBdPvlolZw6r/KuY 5ldDeE12B2wZ35bd1PYLIu0sk+VwbuJN9E5UsitVicC5XuUSGtXB7vSgSUMigpeLI0Cr YH6lw9kd8oFIm599x2wYam5bjjKRfATYFJ3fT+gfK9HVhXFUwlyGBEqcPQbcNKgx4RHx pOHtItS7DeZd4EsnJAHHPDwsIC/rPf+7yDLS5DdkG667xqlI0B33FBEz3BmV7DkYp7dy KijGgpnV9QaQ5TbHLCM+oBYrzlrZgz4VsTlFrGHUppMqLS3XcTYu6Fd0mKhFhtMOoJXQ CQcA== X-Received: by 10.66.219.38 with SMTP id pl6mr12320648pac.59.1374138760154; Thu, 18 Jul 2013 02:12:40 -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.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Jul 2013 02:12:39 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Thu, 18 Jul 2013 11:12:26 +0200 Message-Id: <1374138746-23279-4-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 3/3] package: fix generic patch 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_PATCH target depends on $(2)_TARGET_EXTRACT target. Signed-off-by: Fabio Porcedda --- package/pkg-generic.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index f29ea99..bd03575 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -389,7 +389,8 @@ ifeq ($$($(2)_OVERRIDE_SRCDIR),) $(1)-configure: $(1)-patch $(1)-depends \ $$($(2)_TARGET_CONFIGURE) -$(1)-patch: $(1)-extract $$($(2)_TARGET_PATCH) +$$($(2)_TARGET_PATCH): $$($(2)_TARGET_EXTRACT) +$(1)-patch: $$($(2)_TARGET_PATCH) $$($(2)_TARGET_EXTRACT): $$($(2)_TARGET_SOURCE) $(1)-extract: $$($(2)_TARGET_EXTRACT)