From patchwork Wed Dec 18 10:36:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 302846 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 C5BA12C00AD for ; Wed, 18 Dec 2013 21:37:00 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0DA698B93B; Wed, 18 Dec 2013 10:37:00 +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 AoG9UeO7dc0r; Wed, 18 Dec 2013 10:36:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2A0D38B932; Wed, 18 Dec 2013 10:36:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D97C51BF9E5 for ; Wed, 18 Dec 2013 10:36:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D7E4C32E03 for ; Wed, 18 Dec 2013 10:36:56 +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 BNIAhVzTWsjt for ; Wed, 18 Dec 2013 10:36:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by silver.osuosl.org (Postfix) with ESMTPS id 7FC9A32DCB for ; Wed, 18 Dec 2013 10:36:55 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id y10so8034725pdj.37 for ; Wed, 18 Dec 2013 02:36:55 -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=d5kZzZIdMx/D/rv0QCLSm3IK9cu/+4RS9V4fCrK4i4w=; b=f38N4dPbdJD0gT5s0Je/0MTBBLa2fruRH1Q2+hLTnmHkWgeSgffTrHcV8mfK3aY+/8 n9vfAIcLcFwO4irmeXu3ZVUx54cNlG07Gnln5vUw65ko6lWf03FhdyDE0HrpLik/3n8g +j4XgtmFjttp2YZOoZaKUNeX1sSWM0vsAReStenv0cdzdI2zpU0aKzcUsnxnuTEOh+r5 F4antrELG5V0n8wF+alm3zACVMXrxHZ4FnXSRJLxum2vTtOj3eGDOXf6C2LySEpRnBhS v+04VkmikKelvsLu80+uuoKbFaKlPtwl8a5VW8FH9dWLP0E5pDou6pKrlbDJKg6ZCToQ uKWQ== X-Received: by 10.66.140.40 with SMTP id rd8mr33221549pab.119.1387363014945; Wed, 18 Dec 2013 02:36:54 -0800 (PST) Received: from ld2077.tmt.telital.com ([213.205.6.118]) by mx.google.com with ESMTPSA id hu10sm40106559pbc.11.2013.12.18.02.36.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 02:36:54 -0800 (PST) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 18 Dec 2013 11:36:40 +0100 Message-Id: <1387363007-19846-2-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1387363007-19846-1-git-send-email-fabio.porcedda@gmail.com> References: <1387363007-19846-1-git-send-email-fabio.porcedda@gmail.com> Cc: Thomas Petazzoni , Dallas Clement Subject: [Buildroot] [PATCH v10 1/8] 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 | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 45b808a..668c7da 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -426,6 +426,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 44ed629..8559ac9 100644 --- a/toolchain/toolchain/toolchain.mk +++ b/toolchain/toolchain/toolchain.mk @@ -14,5 +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