All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC
@ 2017-10-22 14:17 Arnout Vandecappelle
  2017-10-22 14:17 ` [Buildroot] [PATCH 2/2] dependencies: correct dependencies for top-level parallel build Arnout Vandecappelle
  2018-01-08 22:38 ` [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2017-10-22 14:17 UTC (permalink / raw)
  To: buildroot

dependencies.sh uses HOSTCC_NOCCACHE directly, and this variable is
exported from the top-level Makefile, so there is no need to pass
HOSTCC to it. HOSTCC is not used at all in dependencies.sh.

Thus, we also no longer need to apply the HOSTCC override for
core-dependencies. The core-depencies rule doesn't use HOSTCC or
HOSTCXX.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 support/dependencies/dependencies.mk | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/support/dependencies/dependencies.mk b/support/dependencies/dependencies.mk
index ef2ae9b7e1..80ba48a6a7 100644
--- a/support/dependencies/dependencies.mk
+++ b/support/dependencies/dependencies.mk
@@ -19,12 +19,11 @@ DEPENDENCIES_HOST_PREREQ += host-ccache
 endif
 
 core-dependencies:
-	@HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
-		DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
+	@MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
 		$(TOPDIR)/support/dependencies/dependencies.sh
 
-core-dependencies $(DEPENDENCIES_HOST_PREREQ): HOSTCC=$(HOSTCC_NOCCACHE)
-core-dependencies $(DEPENDENCIES_HOST_PREREQ): HOSTCXX=$(HOSTCXX_NOCCACHE)
+$(DEPENDENCIES_HOST_PREREQ): HOSTCC=$(HOSTCC_NOCCACHE)
+$(DEPENDENCIES_HOST_PREREQ): HOSTCXX=$(HOSTCXX_NOCCACHE)
 dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
 
 ################################################################################
-- 
2.15.0.rc1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] dependencies: correct dependencies for top-level parallel build
  2017-10-22 14:17 [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Arnout Vandecappelle
@ 2017-10-22 14:17 ` Arnout Vandecappelle
  2018-01-08 22:38 ` [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2017-10-22 14:17 UTC (permalink / raw)
  To: buildroot

Commit 4932c8a7cc94277b3d53cecd935f725b91cfa9fe introduced the
core-dependencies target to make sure that the dependencies.sh script
runs before we attempt to compile any host tool, so that the absence of
a compiler is properly detected. However, this relied on the
left-to-right evaluation of dependencies. This will no longer be true
when we enable top-level parallel build.

Fix this by letting DEPENDENCIES_HOST_PREREQ depend on
core-dependencies.

Note that it is not possible to remove the
dependencies <- core-dependencies. Indeed, it is possible that
DEPENDENCIES_HOST_PREREQ is completely empty, and in that case we still
need to check core-dependencies.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 support/dependencies/dependencies.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/support/dependencies/dependencies.mk b/support/dependencies/dependencies.mk
index 80ba48a6a7..4f606f849d 100644
--- a/support/dependencies/dependencies.mk
+++ b/support/dependencies/dependencies.mk
@@ -24,6 +24,8 @@ core-dependencies:
 
 $(DEPENDENCIES_HOST_PREREQ): HOSTCC=$(HOSTCC_NOCCACHE)
 $(DEPENDENCIES_HOST_PREREQ): HOSTCXX=$(HOSTCXX_NOCCACHE)
+$(DEPENDENCIES_HOST_PREREQ): core-dependencies
+
 dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
 
 ################################################################################
-- 
2.15.0.rc1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC
  2017-10-22 14:17 [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Arnout Vandecappelle
  2017-10-22 14:17 ` [Buildroot] [PATCH 2/2] dependencies: correct dependencies for top-level parallel build Arnout Vandecappelle
@ 2018-01-08 22:38 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-01-08 22:38 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 22 Oct 2017 16:17:51 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> dependencies.sh uses HOSTCC_NOCCACHE directly, and this variable is
> exported from the top-level Makefile, so there is no need to pass
> HOSTCC to it. HOSTCC is not used at all in dependencies.sh.
> 
> Thus, we also no longer need to apply the HOSTCC override for
> core-dependencies. The core-depencies rule doesn't use HOSTCC or
> HOSTCXX.
> 
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  support/dependencies/dependencies.mk | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Both patches applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-08 22:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-22 14:17 [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Arnout Vandecappelle
2017-10-22 14:17 ` [Buildroot] [PATCH 2/2] dependencies: correct dependencies for top-level parallel build Arnout Vandecappelle
2018-01-08 22:38 ` [Buildroot] [PATCH 1/2] core-dependencies: remove unneeded HOSTCC Thomas Petazzoni

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.