From: Sascha Hauer <[email protected]> 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/[email protected] Signed-off-by: Sascha Hauer <[email protected]> (cherry picked from commit f1739aa759f076ecdea8ebe1d792db98c6d0ab68) Signed-off-by: Ahmad Fatoum <[email protected]> --- 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
