From patchwork Fri Apr 19 09:20:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 237887 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 54C5E2C01D6 for ; Fri, 19 Apr 2013 19:20:42 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DE19B31A95; Fri, 19 Apr 2013 09:20:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xQ1VSEUZty58; Fri, 19 Apr 2013 09:20:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id C4676274B7; Fri, 19 Apr 2013 09:20:39 +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 C20A78F753 for ; Fri, 19 Apr 2013 09:20:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 83668A0061 for ; Fri, 19 Apr 2013 09:20:37 +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 ptqD1oF6xhJb for ; Fri, 19 Apr 2013 09:20:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4E86EA0051 for ; Fri, 19 Apr 2013 09:20:36 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id q11so2124003pdj.39 for ; Fri, 19 Apr 2013 02:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=GuXaT5efMKpheIkPrtrFDwGUNQuwudmuvFUwdYWYzts=; b=O4S1ZQ/nl/Zb/KmhYeob+iXrmGQeYwfGaSr57pCZOyruBPbbHpxd/mApBy/a8dN3bq 5I+vKw3XN9AVSoywzgVddTRX9CaeReIlYCU3XTA4+YmyAv9hl2VA1Q1Tz64Rh7I/cBm9 WemtUPf13X6EczzcMwdZ1U93afdMIpmlk1VJPPw4mnLx83EqN7zplg/7qLQuW1DGZHJn hgmqHRBq8VZrVZ3kbylDw+WLP1KOqjzENjOFLQ3xQXv7ZATP+7GsfMGuQMbkpEwdmhiQ zThPhvuAPtT/7z7ELji1RergUppCk0dHetkWqb0f+0Wi/PXPI519bYvZ+EL78y3SANs8 xiBA== X-Received: by 10.68.114.37 with SMTP id jd5mr17893119pbb.95.1366363236591; Fri, 19 Apr 2013 02:20:36 -0700 (PDT) Received: from ld2036.tmt.telital.com.com ([213.205.6.118]) by mx.google.com with ESMTPS id em2sm348238pbb.0.2013.04.19.02.20.34 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 19 Apr 2013 02:20:35 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Fri, 19 Apr 2013 11:20:29 +0200 Message-Id: <1366363229-17937-1-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 Subject: [Buildroot] [PATCH] 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 d8d7e6d..032f86c 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -201,7 +201,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 e6bc955..2460384 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -304,7 +304,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