From patchwork Fri Feb 14 09:55:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 320341 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 B2E802C00B3 for ; Fri, 14 Feb 2014 20:55:23 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DFBDE33004; Fri, 14 Feb 2014 09:55:22 +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 6Sd3VKbH7-fN; Fri, 14 Feb 2014 09:55:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6B1B432F69; Fri, 14 Feb 2014 09:55:20 +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 A0BCF1C2358 for ; Fri, 14 Feb 2014 09:55:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9C0CC93EFD for ; Fri, 14 Feb 2014 09:55:19 +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 yppFkzb8uG2t for ; Fri, 14 Feb 2014 09:55:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by hemlock.osuosl.org (Postfix) with ESMTPS id 48D8393EFB for ; Fri, 14 Feb 2014 09:55:18 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id kl14so12072656pab.15 for ; Fri, 14 Feb 2014 01:55:18 -0800 (PST) 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=XdQncR44CY0PKcJc6ZxUscEGOKoThIoWzYLtoYxro38=; b=PoXZwl2FmbT+f1oFw/zvNOv9c65noG5l7BDM/mzVK2WZDQYJv1+u+R/NFHC6n96e9Z oqqhL505ymfpExFOzAev7AVIVS6CSuQfX8RjRjV+AvlxHMh0Q4HamVtSay9vV02RFabm 4BCceTvmWktM2emDObUa3Ay4NmPP6gNPOVuEUgx77lxsIuEVe/hmgIuHvxnMnMU/GQrI mIov45I9vTCFTgespwctYcYdJtYzQtth1MsnKOguh3IfCZZI2UsIO6+vMYglzEhvQw2p jJbEgy2saMP1fpWIKUSpiEdpEMOAw+3wXyJCuqbO9UQLJNkCsMaJKti1qCNsGm9PtK5u BbBQ== X-Received: by 10.67.13.226 with SMTP id fb2mr7918691pad.146.1392371718053; Fri, 14 Feb 2014 01:55:18 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id os1sm36815176pac.20.2014.02.14.01.55.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 01:55:17 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Fri, 14 Feb 2014 10:55:03 +0100 Message-Id: <1392371709-26662-2-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1392371709-26662-1-git-send-email-fabio.porcedda@gmail.com> References: <1392371709-26662-1-git-send-email-fabio.porcedda@gmail.com> Cc: Thomas Petazzoni , Dallas Clement Subject: [Buildroot] [PATCH v13 1/7] package: add base dependency to every 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 Move "dependencies" "dirs" "prepare" dependencies from "toolchain" to every package. This way we can build correctly every package right after the clean stage. As example with this commit we can build successfully the glibc right after the clean stage: make clean glibc This is also a step forward supporting top-level parallel make. Signed-off-by: Fabio Porcedda Acked-by: Arnout Vandecappelle (Essensium/Mind) --- package/pkg-generic.mk | 5 +++++ toolchain/toolchain/toolchain.mk | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 555c3c2..e5b04ff 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -427,6 +427,11 @@ $(1)-install-host: $(1)-build $$($(2)_TARGET_INSTALL_HOST) $(1)-build: $(1)-configure \ $$($(2)_TARGET_BUILD) +$$($(2)_TARGET_SOURCE) $$($(2)_TARGET_RSYNC): | dirs prepare +ifeq ($(filter $(1),$(DEPENDENCIES_HOST_PREREQ)),) +$$($(2)_TARGET_SOURCE) $$($(2)_TARGET_RSYNC): | dependencies +endif + ifeq ($$($(2)_OVERRIDE_SRCDIR),) # In the normal case (no package override), the sequence of steps is # source, by downloading diff --git a/toolchain/toolchain/toolchain.mk b/toolchain/toolchain/toolchain.mk index 1152e25..8559ac9 100644 --- a/toolchain/toolchain/toolchain.mk +++ b/toolchain/toolchain/toolchain.mk @@ -14,4 +14,4 @@ endif $(eval $(generic-package)) -toolchain-source: prepare dirs dependencies $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake +toolchain: $(HOST_DIR)/usr/share/buildroot/toolchainfile.cmake