mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] host-tf-a: Disable compiler autodetection
@ 2026-06-03  5:10 Gavin Schenk
  2026-06-22  8:11 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Gavin Schenk @ 2026-06-03  5:10 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

On recent gnu make version compiler autodetection fails.

Michael stated in IRC:

It's a whitespace issue. If the tool is not found, then in
make_helpers/toolchain.mk toolchain-warn-unrecognized is called and that
expands to multiple empty lines, so $1-$2-id contains those and that
breaks somewhere later.

Setting CC=gcc is a good solution. It overwrites the autodetection. And
since we don't use it anyways, because we just build fiptool (which uses
HOSTCC), it does not really matter what we set there

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
---
 rules/host-tf-a.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make
index 38f000642..aff89dae5 100644
--- a/rules/host-tf-a.make
+++ b/rules/host-tf-a.make
@@ -10,7 +10,7 @@
 #
 HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a
 
-HOST_TF_A_MAKE_OPT = fiptool
+HOST_TF_A_MAKE_OPT = fiptool CC=gcc
 
 $(STATEDIR)/host-tf-a.install:
 	@$(call targetinfo)
-- 
2.53.0




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

* Re: [ptxdist] [APPLIED] host-tf-a: Disable compiler autodetection
  2026-06-03  5:10 [ptxdist] [PATCH] host-tf-a: Disable compiler autodetection Gavin Schenk
@ 2026-06-22  8:11 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-06-22  8:11 UTC (permalink / raw)
  To: ptxdist; +Cc: Gavin Schenk

Thanks, applied as f863d8a8e234fcf93593721bdaa1324ee76928ff.

Michael

[sent from post-receive hook]

On Mon, 22 Jun 2026 10:11:29 +0200, Gavin Schenk <g.schenk@eckelmann.de> wrote:
> On recent gnu make version compiler autodetection fails.
> 
> Michael stated in IRC:
> 
> It's a whitespace issue. If the tool is not found, then in
> make_helpers/toolchain.mk toolchain-warn-unrecognized is called and that
> expands to multiple empty lines, so $1-$2-id contains those and that
> breaks somewhere later.
> 
> Setting CC=gcc is a good solution. It overwrites the autodetection. And
> since we don't use it anyways, because we just build fiptool (which uses
> HOSTCC), it does not really matter what we set there
> 
> Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
> Message-Id: <20260603051117.3969413-1-g.schenk@eckelmann.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make
> index 38f0006428e1..aff89dae58e1 100644
> --- a/rules/host-tf-a.make
> +++ b/rules/host-tf-a.make
> @@ -10,7 +10,7 @@
>  #
>  HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a
>  
> -HOST_TF_A_MAKE_OPT = fiptool
> +HOST_TF_A_MAKE_OPT = fiptool CC=gcc
>  
>  $(STATEDIR)/host-tf-a.install:
>  	@$(call targetinfo)



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

end of thread, other threads:[~2026-06-22  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  5:10 [ptxdist] [PATCH] host-tf-a: Disable compiler autodetection Gavin Schenk
2026-06-22  8:11 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox