[PATCH v2025.09.y 42/49] ARM: k3: am62l: fix dependencies on k3img input files

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Dec 19 01:21:18 PST 2025


From: Sascha Hauer <s.hauer at pengutronix.de>

Apart from the barebox image itself the k3img tool has several other
input files. Add proper dependencies on them to make sure the image
is rebuilt when one of the input files changes.

Link: https://lore.barebox.org/20251202-k3-deps-v1-4-68404d3b2c70@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
(cherry picked from commit f1739aa759f076ecdea8ebe1d792db98c6d0ab68)
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 images/Makefile.k3 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/images/Makefile.k3 b/images/Makefile.k3
index bb49c0a9548a..7e779193b190 100644
--- a/images/Makefile.k3
+++ b/images/Makefile.k3
@@ -118,8 +118,16 @@ quiet_cmd_k3_am62lx_tiboot3_image = K3_am62lx_tiboot3_IMG   $@
 $(obj)/%.k3_am62x_img: $(obj)/% scripts/k3img FORCE
 	$(call if_changed,k3_am62x_image)
 
-$(obj)/%.k3_am62lx_img: $(obj)/% scripts/k3img FORCE
+$(obj)/%.k3_am62lx_img: $(obj)/% scripts/k3img FORCE \
+		$(TFA_BL31_am62lx)				\
+		$(INNERDATA_am62lx)				\
+		$(SYSFW_am62lx_hs_fs)				\
+		$(SYSFWDATA_am62lx)				\
+		$(AM62L_TIBOOT3_OPTEE)
 	$(call if_changed,k3_am62lx_image)
 
-$(obj)/%.k3_am62lx_tiboot3_img: $(obj)/% scripts/k3img FORCE
+$(obj)/%.k3_am62lx_tiboot3_img: $(obj)/% scripts/k3img FORCE 	\
+		$(SYSFW_am62lx_hs_fs)				\
+		$$(TFA_BL1_$$(@F))				\
+		$(INNERDATA_am62lx)
 	$(call if_changed,k3_am62lx_tiboot3_image)
-- 
2.47.3




More information about the barebox mailing list