From patchwork Tue Jul 9 08:47:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 257668 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 858E62C00B1 for ; Tue, 9 Jul 2013 18:49:40 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C91BA8C045; Tue, 9 Jul 2013 08:49:36 +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 FqSrL55m-VT9; Tue, 9 Jul 2013 08:49:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D16548B28B; Tue, 9 Jul 2013 08:48:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5E7AC1BFAAB for ; Tue, 9 Jul 2013 08:48:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2449A8C0B2 for ; Tue, 9 Jul 2013 08:48:02 +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 iqq7BgoY5KdL for ; Tue, 9 Jul 2013 08:48:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 88BE68C0A3 for ; Tue, 9 Jul 2013 08:48:01 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id kq13so5260956pab.39 for ; Tue, 09 Jul 2013 01:48:01 -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=m2GqfOaSgHPZxa0HIBKnD+JEn5rWtl7DaBFeq9+l72k=; b=JnTfQmO79oAYChj6dr2AvqVhq8d/Jhzd/id+vPanwxN6tpFtr/SFdBuVkOdSyNPBAK w0BaGDFTVM1ohAHn2b8Mogv12JSDY0uZUqFjQsUQHxniYyR+3dd1sggxYvkq0K0b5ME0 MRWIlzizjDy7DkgI6rYXyAMJ8fvU2ZJDXcbFUb4Wo9igwVjh0XUhTFR6f21exsw7iyjk lT/22DTpshvgdQ984GVVDvD92QfpjkVH8w+FK5Yj/QyDQX3JZnRxs3YyqwvTQ7pp6iOd Nsub+DF4JfILfVP8h8HQBHqkRXll7QZh+PfUjh27N00Bir3teAHHIz+WwwVZq5lfsQC4 j6rw== X-Received: by 10.66.173.201 with SMTP id bm9mr27258291pac.27.1373359681279; Tue, 09 Jul 2013 01:48:01 -0700 (PDT) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id eq5sm27081704pbc.15.2013.07.09.01.47.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Jul 2013 01:48:00 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 9 Jul 2013 10:47:48 +0200 Message-Id: <1373359668-18099-5-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1373359668-18099-1-git-send-email-fabio.porcedda@gmail.com> References: <1373359668-18099-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [PATCH 4/4] 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 fb317d5..6fe3a46 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -394,7 +394,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)