[PATCH 7/9] makefile: Update clean rule to remove files generated by binman

Bin Meng bmeng.cn at gmail.com
Wed May 5 16:15:55 CEST 2021


When using binman to generate an FIT image, these intermediate files
"*.fit.fit" and "*.fit.itb" are generated from mkimage, which should
be cleaned, and git ignored.

While we are here, clean the map file generated by "binman -m" as well.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 .gitignore | 4 +++-
 Makefile   | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index e66aa864da..b9ebe0dfd7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,10 +40,12 @@
 fit-dtb.blob*
 /MLO*
 /SPL*
-/System.map
 /u-boot*
 /boards.cfg
+/*.fit.fit
+/*.fit.itb
 /*.log
+/*.map
 
 #
 # git files that we don't want to ignore even it they are dot-files
diff --git a/Makefile b/Makefile
index 404977efa5..a5701f6f9a 100644
--- a/Makefile
+++ b/Makefile
@@ -1998,9 +1998,10 @@ CLEAN_DIRS  += $(MODVERDIR) \
 			$(filter-out include, $(shell ls -1 $d 2>/dev/null))))
 
 CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h tools/version.h \
-	       boot* u-boot* MLO* SPL System.map fit-dtb.blob* \
+	       boot* u-boot* MLO* SPL *.map fit-dtb.blob* \
 	       u-boot-ivt.img.log u-boot-dtb.imx.log SPL.log u-boot.imx.log \
-	       lpc32xx-* bl31.c bl31.elf bl31_*.bin image.map tispl.bin* \
+	       lpc32xx-* bl31.c bl31.elf bl31_*.bin tispl.bin* \
+	       *.fit.fit *.fit.itb \
 	       idbloader.img flash.bin flash.log defconfig
 
 # Directories & files removed with 'make mrproper'
-- 
2.25.1



More information about the U-Boot mailing list