From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] host-tf-a: fix build with v2.14
Date: Wed, 18 Mar 2026 12:14:04 +0100 [thread overview]
Message-ID: <20260318111403.842617-2-rhi@pengutronix.de> (raw)
TF-A >= v2.14 now tries to detect an ARM toolchain early in the Makefile
and errors out if it cannot find one before even evaluating the
'fiptool' recipe. Even though we only use the host toolchain to build
fiptool, set the same build environment as for the tf-a recipe to make
it work again. HOST_TF_A is usually only selected by images, not by TF_A
directly, so make sure that we can use TF_A_* variables with an
additional 'select' in the platformconfig menu.
(This problem only happens on build hosts without an aarch64-linux-gnu-*
toolchain installed in /usr/bin/, to which TF-A defaults when no ARCH is
set. However PTXdist includes the selected_toolchain in PATH when
building host-tf-a, so a matching cross toolchain can always be found.)
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
platforms/host-tf-a.in | 1 +
rules/host-tf-a.make | 4 +++-
rules/tf-a.make | 8 +++++---
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/platforms/host-tf-a.in b/platforms/host-tf-a.in
index f8fd15c48937..9a77c7e8ddc3 100644
--- a/platforms/host-tf-a.in
+++ b/platforms/host-tf-a.in
@@ -4,5 +4,6 @@ config HOST_TF_A
tristate
default y if ALLYES && TF_A
select HOST_OPENSSL
+ select TF_A if BUILDTIME
help
This provides fiptool
diff --git a/rules/host-tf-a.make b/rules/host-tf-a.make
index 38f0006428e1..5b8045feefdf 100644
--- a/rules/host-tf-a.make
+++ b/rules/host-tf-a.make
@@ -10,7 +10,9 @@
#
HOST_PACKAGES-$(PTXCONF_HOST_TF_A) += host-tf-a
-HOST_TF_A_MAKE_OPT = fiptool
+HOST_TF_A_MAKE_OPT = \
+ $(TF_A_SHARED_OPT) \
+ fiptool
$(STATEDIR)/host-tf-a.install:
@$(call targetinfo)
diff --git a/rules/tf-a.make b/rules/tf-a.make
index 6347112fcf1c..89b53d695775 100644
--- a/rules/tf-a.make
+++ b/rules/tf-a.make
@@ -45,13 +45,15 @@ TF_A_WRAPPER_BLACKLIST := \
TF_A_EXTRA_ARGS := $(call remove_quotes,$(PTXCONF_TF_A_EXTRA_ARGS))
TF_A_BINDIR = $(TF_A_BUILD_DIR)/$(1)/$(if $(filter DEBUG=1,$(TF_A_EXTRA_ARGS)),debug,release)
TF_A_BINDIR_BOARD = $(TF_A_BUILD_DIR)/$(1)/*/$(if $(filter DEBUG=1,$(TF_A_EXTRA_ARGS)),debug,release)
-TF_A_MAKE_OPT := \
- -C $(TF_A_DIR) \
+TF_A_SHARED_OPT := \
CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \
HOSTCC=$(HOSTCC) \
ARCH=$(PTXCONF_TF_A_ARCH_STRING) \
ARM_ARCH_MAJOR=$(PTXCONF_TF_A_ARM_ARCH_MAJOR) \
- BUILD_STRING=$(PTXCONF_TF_A_VERSION) \
+ BUILD_STRING=$(PTXCONF_TF_A_VERSION)
+TF_A_MAKE_OPT := \
+ -C $(TF_A_DIR) \
+ $(TF_A_SHARED_OPT) \
$(TF_A_EXTRA_ARGS) \
all
--
2.47.3
reply other threads:[~2026-03-18 11:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260318111403.842617-2-rhi@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox