All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Porcedda <fabio.porcedda@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v13 1/7] package: add base dependency to every package
Date: Fri, 14 Feb 2014 10:55:03 +0100	[thread overview]
Message-ID: <1392371709-26662-2-git-send-email-fabio.porcedda@gmail.com> (raw)
In-Reply-To: <1392371709-26662-1-git-send-email-fabio.porcedda@gmail.com>

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 <fabio.porcedda@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 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
-- 
1.8.5.2

  reply	other threads:[~2014-02-14  9:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14  9:55 [Buildroot] [PATCH v13 0/7] Add support for top-level parallel make Fabio Porcedda
2014-02-14  9:55 ` Fabio Porcedda [this message]
2014-02-14  9:55 ` [Buildroot] [PATCH v13 2/7] package: add toolchain dependency to every target package Fabio Porcedda
2014-02-14  9:55 ` [Buildroot] [PATCH v13 3/7] package: add support for top-level parallel make Fabio Porcedda
2014-02-14  9:55 ` [Buildroot] [PATCH v13 4/7] Makefile: " Fabio Porcedda
2014-02-14  9:55 ` [Buildroot] [PATCH v13 5/7] package: enable jobserver for recursive make Fabio Porcedda
2014-02-14  9:55 ` [Buildroot] [PATCH v13 6/7] Makefile: update comment about top-level parallel Makefile Fabio Porcedda
2014-02-14  9:55 ` [Buildroot] [PATCH v13 7/7] sdl: add support for top-level parallel make Fabio Porcedda
2014-02-14 13:46   ` Maxime Hadjinlian
2014-02-14 20:11 ` [Buildroot] [PATCH v13 0/7] Add " Peter Korsgaard
2014-02-14 20:15   ` Thomas De Schampheleire
2014-02-14 20:23     ` Peter Korsgaard
2014-02-14 22:52       ` Fabio Porcedda
2014-02-15  7:40         ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1392371709-26662-2-git-send-email-fabio.porcedda@gmail.com \
    --to=fabio.porcedda@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.