diff options
author | Fabio Porcedda <fabio.porcedda@gmail.com> | 2014-02-14 10:55:03 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-02-14 21:08:19 +0100 |
commit | 6f13130ac9a1a5eebfccbd8c9f04a6ec3f5ceba2 (patch) | |
tree | 514e8bb733b8ca44b55851f2bc0d7e51248e15fe | |
parent | 55d1c953dc17a13e848951da88f45c673eafdda9 (diff) | |
download | buildroot-6f13130ac9a1a5eebfccbd8c9f04a6ec3f5ceba2.tar.gz buildroot-6f13130ac9a1a5eebfccbd8c9f04a6ec3f5ceba2.zip |
package: add base dependency to every package
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>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/pkg-generic.mk | 5 | ||||
-rw-r--r-- | toolchain/toolchain/toolchain.mk | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 555c3c2e26..e5b04ff643 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 1152e2508a..8559ac9df4 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 |