From patchwork Tue Jul 9 08:47:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 257669 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 99EDF2C02F4 for ; Tue, 9 Jul 2013 18:50:29 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7BCAE8BD27; Tue, 9 Jul 2013 08:50:25 +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 Q7njEFAE5Kn8; Tue, 9 Jul 2013 08:49:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A016F8C813; Tue, 9 Jul 2013 08:48:35 +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 B14D11BFAAB for ; Tue, 9 Jul 2013 08:48:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 76C2B8C0F5 for ; Tue, 9 Jul 2013 08:48:12 +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 CC6xdq8oJhA3 for ; Tue, 9 Jul 2013 08:47:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id ECC658B6C3 for ; Tue, 9 Jul 2013 08:47:57 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rr13so5217908pbb.20 for ; Tue, 09 Jul 2013 01:47:57 -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=dh8D2bKxi4n11dir9ZCh8wtaeNArcYDRhgL56garJFg=; b=Epnehc11RPnndL9hXIp1XefGgPijkaRU0awHGm7LRcTwmJEDhaoaKKG5O3NBSflPi1 iwTt2m5sPhow8S7cUX7nNLR2c2/BEHEgJoXHVK1p2YOUSBOebVvo4fvYH2flcCrgXqU/ yPpn/5Xw/0+QoEQ9+078YkQocXQjpaecLsL2a8Ke417xO+6+BX7k8k8GE5yn59UvCbpo M2Er7D1V2QH2FHKtWCRd8AqQmafoUpcZPl4DF1e1a3spat9wGlckmZKVENB3wjo5Ip9u 5YTKHrRBs1mS9VlLRPGXTOsGU1x/QtpgHO/CCjS40ktmlhujtdoDQlM8tTxhYf8Lks0Q EUlg== X-Received: by 10.66.14.196 with SMTP id r4mr27221265pac.57.1373359677460; Tue, 09 Jul 2013 01:47:57 -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.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 09 Jul 2013 01:47:56 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 9 Jul 2013 10:47:46 +0200 Message-Id: <1373359668-18099-3-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 2/4] package: add toolchain dependency to inner-generic-package 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 This commit makes the dependency from the target toolchain explicit. This way we can buid from command line a package that use innger-generic-package right after the configuration phase. This is a step forward top-level parallel make. Signed-off-by: Fabio Porcedda --- package/pkg-autotools.mk | 2 +- package/pkg-generic.mk | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk index 09deef2..4195fde 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -202,7 +202,7 @@ endef # This must be repeated from inner-generic-package, otherwise we get an empty # _DEPENDENCIES if _AUTORECONF is YES. Also filter the result of _AUTORECONF # away from the non-host rule -$(2)_DEPENDENCIES ?= $(filter-out host-automake host-autoconf host-libtool $(1),\ +$(2)_DEPENDENCIES ?= $(filter-out host-automake host-autoconf host-libtool host-toolchain $(1),\ $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 668f011..7e46126 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -302,7 +302,12 @@ endif $(2)_REDISTRIBUTE ?= YES -$(2)_DEPENDENCIES ?= $(filter-out $(1),$(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))) +$(2)_DEPENDENCIES ?= $(filter-out host-toolchain $(1),\ + $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))) +ifeq ($$($(2)_TYPE),target) +$(2)_DEPENDENCIES += toolchain +endif + $(2)_INSTALL_STAGING ?= NO $(2)_INSTALL_IMAGES ?= NO