Commit 6f13130a authored by Fabio Porcedda's avatar Fabio Porcedda Committed by Peter Korsgaard
Browse files

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: default avatarFabio Porcedda <fabio.porcedda@gmail.com>
Acked-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 55d1c953
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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