@Andrea if i remember correctly this issue can be resolved using simple patch
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: John Doe <john.doe@somewhere.on.planet>
Date: Sat, 9 Mar 2024 18:20:14 +0100
Subject: Patching atf sunxi64 files make_helpers/build_macros.mk
Signed-off-by: John Doe <john.doe@somewhere.on.planet>
---
make_helpers/build_macros.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/make_helpers/build_macros.mk b/make_helpers/build_macros.mk
index a99d51669..cc1270cd8 100644
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -491,11 +491,11 @@ endif
all: ${LIB_DIR}/lib$(1).a
${LIB_DIR}/lib$(1).a: $(OBJS)
$$(ECHO) " AR $$@"
- $$(Q)$($(ARCH)-ar) cr $$@ $$?
+ $$(Q)$($(ARCH))-ar cr $$@ $$?
endef
# Generate the path to one or more preprocessed linker scripts given the paths
# of their sources.
#
--
Created with Armbian build tools https://github.com/armbian/build
Error is due to value $($(ARCH)-ar) being set to platform gcc command and not platform ar command.