From patchwork Tue Jul 9 08:47:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 257670 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 6D2B62C02F4 for ; Tue, 9 Jul 2013 18:50:58 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3C44C8B41F; Tue, 9 Jul 2013 08:50:56 +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 73mnRrMeILTl; Tue, 9 Jul 2013 08:50:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 70FA98C95F; Tue, 9 Jul 2013 08:49:02 +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 B01761BFAAB for ; Tue, 9 Jul 2013 08:48:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 52CED8C1EF for ; Tue, 9 Jul 2013 08:48:20 +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 J2byN1aZTgUX for ; Tue, 9 Jul 2013 08:48:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1107A8BC65 for ; Tue, 9 Jul 2013 08:47:59 +0000 (UTC) Received: by mail-pd0-f175.google.com with SMTP id 4so5025063pdd.34 for ; Tue, 09 Jul 2013 01:47:59 -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=kS5sMgpCSyDmb7CMut2sUE18gDE87gf7P5v+Rees2xU=; b=ICIGDTsGWpzzqY4WoUYeukuEkNQmLuDimOB/tBbyQrjPeJR6irLQjWSC6Z+oDb4VWv g2TL5dZzcGqkdSMlLXgfMkVJj1TIMybJ+mnQHE3NEarHxLv6Kz7sOr6/avvBzDgIijc7 aXnSvCEcJzXTuSp7vNXoUkeOEmCmjMpkAqFtWdaSXUmZtNSLGGudXgg0IXRbrGKeZBoA pb7abWzmRFn5vGwtaIqQHt06qJZqcYEMaKAbnmVey0HgOJrvqEK13xqaXQYnA719hwsp ter84HLwuubgZBZc8xIkwXfgXoTS/gMuqk47vhqL/PeePR5qe6TTzrheNMPvzVexzarr 143w== X-Received: by 10.66.152.68 with SMTP id uw4mr27218091pab.84.1373359679363; Tue, 09 Jul 2013 01:47:59 -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.57 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Jul 2013 01:47:58 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 9 Jul 2013 10:47:47 +0200 Message-Id: <1373359668-18099-4-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 3/4] 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 7e46126..fb317d5 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -396,8 +396,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)