[PATCH] ARM: stm32mp: don't generate .img symlinks for .stm32 binaries
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Sep 15 06:03:53 PDT 2023
The .img extension for stm32mp1 images has been unfortunate. The format was
deprecated and finally removed in TF-A v2.8 in favor of the FIP format.
We won't remove support in barebox soon, but we shouldn't call these images
*.img. Since commit 3536e3904152 ("ARM: stm32mp: change stm32image extension to .stm32")
introduced with v2022.04.0, the .img files have been symlinks to regular files with
a stm32 extension and this commit now finishes the job and deletes the .img symlinks.
Users still using older TF-A versions should change their build system to use the same
barebox image file, but with .stm32 extension.
Users with new TF-A versions, should use the barebox-stm32mp-generic-bl33.img
as non-trusted firmware in the FIP in addition to a matching device tree generated
during the same barebox build.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
images/Makefile.stm32mp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/images/Makefile.stm32mp b/images/Makefile.stm32mp
index 59d65722078d..86ff870051c2 100644
--- a/images/Makefile.stm32mp
+++ b/images/Makefile.stm32mp
@@ -9,7 +9,7 @@
.SECONDEXPANSION:
$(obj)/%.stm32: $(obj)/$$(FILE_$$(@F)) FORCE
$(Q)if [ -z $(FILE_$(@F)) ]; then echo "FILE_$(@F) empty!"; false; fi
- @(cd $(obj) && ln -fs $(notdir $@) $(basename $(notdir $@)).img)
+ @(cd $(obj) && rm -f $(basename $(notdir $@)).img)
$(call if_changed,stm32_image)
define build_stm32mp_image =
--
2.39.2
More information about the barebox
mailing list