mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] tf-a: k3 needs an additional compile argument
@ 2025-05-15 13:56 Lars Schmidt
  0 siblings, 0 replies; only message in thread
From: Lars Schmidt @ 2025-05-15 13:56 UTC (permalink / raw)
  To: ptxdist; +Cc: Lars Schmidt

In order to compile ARM Trusted Firmware-A for K3 platforms,
it needs TARGET_BOARD=lite set as make argument. The output files
are then located in a subdirectory.

Link: https://github.com/TexasInstruments/processor-sdk-doc/blob/0699d1bd5283d80c0adbd93035e361170dd36d98/source/linux/Foundational_Components_ATF.rst
Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
---
 rules/tf-a.make | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rules/tf-a.make b/rules/tf-a.make
index bff4edf6c..664f360c5 100644
--- a/rules/tf-a.make
+++ b/rules/tf-a.make
@@ -44,6 +44,7 @@ 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) \
 	CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) \
@@ -93,7 +94,8 @@ tf-a/inst_pkgdir = \
 	install -v -D -m 644 $(2) $(TF_A_PKGDIR)/usr/lib/firmware/$(3)
 
 tf-a/inst_plat = $(foreach artifact, \
-	$(wildcard $(addprefix $(TF_A_BINDIR)/, $(TF_A_ARTIFACTS))), \
+	$(wildcard $(addprefix $(TF_A_BINDIR)/, $(TF_A_ARTIFACTS))) \
+	$(wildcard $(addprefix $(TF_A_BINDIR_BOARD)/, $(TF_A_ARTIFACTS))), \
 	$(call $(2),TF_A,$(artifact),$(1)-$(notdir $(artifact)))$(ptx/nl))
 
 tf-a/inst_bins = $(foreach plat, $(TF_A_PLATFORMS), $(call tf-a/inst_plat,$(plat),$(1)))
-- 
2.39.5




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-15 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-15 13:56 [ptxdist] [PATCH] tf-a: k3 needs an additional compile argument Lars Schmidt

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