From patchwork Tue Mar 3 09:17:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 445611 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 C02D01400F1 for ; Tue, 3 Mar 2015 20:19:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=rJrOYrEX; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C380B90E6A; Tue, 3 Mar 2015 09:19:29 +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 upAjxyFhLAfr; Tue, 3 Mar 2015 09:19:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B66C491A6C; Tue, 3 Mar 2015 09:19:14 +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 6FABE1C0B50 for ; Tue, 3 Mar 2015 09:19:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6C166A192C for ; Tue, 3 Mar 2015 09:19:12 +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 jTfCYG5Rgs2c for ; Tue, 3 Mar 2015 09:19:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 15F09A18DB for ; Tue, 3 Mar 2015 09:19:12 +0000 (UTC) Received: by padbj1 with SMTP id bj1so26053756pad.11 for ; Tue, 03 Mar 2015 01:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=8GyQ8u5Egkexug4nNkLxn3g3DAG1NFOO3BtXqwAaSek=; b=rJrOYrEXH7pliUdDVPnpp/lRk8bJDH4uG0wHidpEAYHNqgjnO9WOVIXK+aGhhh6Ear bNKwceCyhsZHR4l+M9F3dK+i/2YxeU9pIfWt/DNZc+k33abbT0VoHJXC1rx3hWDJO9dG WsJc6n0agFxWYF+vt92SzCMRSw1P46xDyJ0t5lbgeY0UD526EixBVxfwRPgthVzP4zLV 5GOZRtF5yfP1pTmb3gCLxRNOBQeC2HUvPBAzOj8vRt1gT5pfvqzYpBCoVsxOqz/vuwO1 9dkaQFfJmkHEfC6XNk8J9PyGq5fwfZBwREjMC00B7osUPzYFnnmWPyJ3hfpqwrzGi5AV 3xkw== X-Received: by 10.69.26.166 with SMTP id iz6mr54954663pbd.9.1425374351887; Tue, 03 Mar 2015 01:19:11 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id fs13sm323638pdb.38.2015.03.03.01.19.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 01:19:11 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Tue, 3 Mar 2015 10:17:34 +0100 Message-Id: <1425374255-6827-30-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> References: <1425374255-6827-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [RFC v3 29/30] pkg-generic: ADD_TOOLCHAIN_DEPENDENCY is true only for target packages X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" This will simplify the commit that add the per-package staging directory. Signed-off-by: Fabio Porcedda --- package/pkg-generic.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 1b09955..43289d0 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -413,17 +413,20 @@ $(2)_REDISTRIBUTE ?= YES # When a target package is a toolchain dependency set this variable to # 'NO' so the 'toolchain' dependency is not added to prevent a circular # dependency -$(2)_ADD_TOOLCHAIN_DEPENDENCY ?= YES +ifeq ($(4),target) + $(2)_ADD_TOOLCHAIN_DEPENDENCY ?= YES +else + $(2)_ADD_TOOLCHAIN_DEPENDENCY ?= NO +endif ifeq ($(4),host) $(2)_DEPENDENCIES ?= $$(filter-out host-toolchain $(1),\ $$(patsubst host-host-%,host-%,$$(addprefix host-,$$($(3)_DEPENDENCIES)))) endif -ifeq ($(4),target) + ifeq ($$($(2)_ADD_TOOLCHAIN_DEPENDENCY),YES) $(2)_DEPENDENCIES += toolchain endif -endif # Eliminate duplicates in dependencies $(2)_FINAL_DEPENDENCIES = $$(sort $$($(2)_DEPENDENCIES))