From patchwork Tue Sep 17 07:59:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 275392 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 E31B52C00DF for ; Tue, 17 Sep 2013 17:59:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2563F8B0CE; Tue, 17 Sep 2013 07:59:26 +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 oHHYudt4_xmA; Tue, 17 Sep 2013 07:59:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id DC32D8AFCD; Tue, 17 Sep 2013 07:59:23 +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 DA3311BFA43 for ; Tue, 17 Sep 2013 07:59:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CDB668B6E0 for ; Tue, 17 Sep 2013 07:59:22 +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 20cNrBQXerJH for ; Tue, 17 Sep 2013 07:59:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9D71F8B698 for ; Tue, 17 Sep 2013 07:59:21 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id hz10so6456721pad.2 for ; Tue, 17 Sep 2013 00:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oeIA2ILsIDdjhFD/Bjy3TDUfTBikP+HrGb0/YSFdHSM=; b=msHisdzooT73XKyg+ax/mVlBB73laPnKxYTI4nrwLwjGjX6+lHelbRr619n3zboge5 k4b+mB4um2OYfP8/ueD9y9PwNCN2YNLFhOh46cIphbc6zKjeuBC3T5gmB1T+MuUVY5Sq gUKhfqJrMyuqZNFu3OXnDZVMiu0DBj2Ra3oHy8myCmIEUdaQhWFeuK4ApxdFcgFLMr3r iZHmHx+DhuCsxNRnYRuQ02fIe2THwZDg/Y2TfkB8y1V7u3WfMfMfPPXTnhqZSwcNcGdX LEfPUmoYMESvNzoEyZNRmthYGBDcD4QLiQnA/fN8zHvxaK8qAnuKT3+ht/bM7fGXClal 64rA== X-Received: by 10.68.189.195 with SMTP id gk3mr193358pbc.199.1379404761435; Tue, 17 Sep 2013 00:59:21 -0700 (PDT) Received: from ld2036.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id ct4sm36371611pbb.41.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Sep 2013 00:59:20 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 17 Sep 2013 09:59:11 +0200 Message-Id: <1379404753-3471-2-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1379404753-3471-1-git-send-email-fabio.porcedda@gmail.com> References: <1379404753-3471-1-git-send-email-fabio.porcedda@gmail.com> Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v4 1/3] 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, example: make clean This is a step forward top-level parallel make. Signed-off-by: Fabio Porcedda --- Makefile | 2 +- package/pkg-autotools.mk | 3 ++- package/pkg-generic.mk | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3367a6a..2465bc9 100644 --- a/Makefile +++ b/Makefile @@ -398,7 +398,7 @@ prepare: $(BUILD_DIR)/buildroot-config/auto.conf toolchain: prepare dirs dependencies $(BASE_TARGETS) -world: toolchain $(TARGETS_ALL) +world: $(TARGETS_ALL) .PHONY: all world toolchain dirs clean distclean source outputmakefile \ legal-info legal-info-prepare legal-info-clean printvars \ diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk index b0eddde..aafa396 100644 --- a/package/pkg-autotools.mk +++ b/package/pkg-autotools.mk @@ -202,7 +202,8 @@ 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 bfc4dc1..d7efcd3 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -307,7 +307,11 @@ 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