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 <[email protected]> --- 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
