[U-Boot] [PATCH v2] Makefile: remove generated boards.cfg within make distclean

Roger Meier roger at bufferoverflow.ch
Sun Aug 10 14:37:40 CEST 2014


Signed-off-by: Roger Meier <roger at bufferoverflow.ch>
CC: Masahiro Yamada <yamada.m at jp.panasonic.com>
CC: Tom Rini <trini at ti.com>
CC: Wolfgang Denk <wd at denx.de>

---
Changes for v2:
   - remove boards.cfg within make distclean instead of mrproper
   - use mrproper instead of distclean within MAKEALL
---
 MAKEALL  |    2 +-
 Makefile |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index 929fe88..392ea8d 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -658,7 +658,7 @@ build_target() {
 		MAKE="${MAKE} O=${output_dir}"
 	fi
 
-	${MAKE} distclean >/dev/null
+	${MAKE} mrproper >/dev/null
 
 	echo "Building ${target} board..."
 	${MAKE} -s ${target}_defconfig >/dev/null
diff --git a/Makefile b/Makefile
index 666d291..067a301 100644
--- a/Makefile
+++ b/Makefile
@@ -1285,7 +1285,8 @@ distclean: mrproper
 		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
 		-o -name '.*.rej' -o -name '*%' -o -name 'core' \
 		-o -name '*.pyc' \) \
-		-type f -print | xargs rm -f
+		-type f -print | xargs rm -f \
+	rm -f boards.cfg
 
 backup:
 	F=`basename $(srctree)` ; cd .. ; \
-- 
1.7.10.4



More information about the U-Boot mailing list