Patchwork [U-Boot] MAKEALL: add a -C/--check option to enable build checking

login
register
mail settings
Submitter Kim Phillips
Date Sept. 28, 2012, 12:57 a.m.
Message ID <20120927195734.3edbada82221b3734c463359@freescale.com>
Download mbox | patch
Permalink /patch/187662/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Kim Phillips - Sept. 28, 2012, 12:57 a.m.
thanks to Tom Rini for the good idea.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 MAKEALL | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Tom Rini - Oct. 9, 2012, 5:16 p.m.
On Thu, Sep 27, 2012 at 02:57:34PM -0000, Kim Phillips wrote:

> thanks to Tom Rini for the good idea.
> 
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>

Applied to u-boot/next, thanks!

Patch

diff --git a/MAKEALL b/MAKEALL
index 806f21f..fa7d010 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -19,6 +19,7 @@  usage()
 	  -l,        --list            List all targets to be built
 	  -m,        --maintainers     List all targets and maintainer email
 	  -M,        --mails           List all targets and all affilated emails
+	  -C,        --check           Enable build checking
 	  -h,        --help            This help output
 
 	Selections by these options are logically ANDed; if the same option
@@ -51,8 +52,8 @@  usage()
 	exit ${ret}
 }
 
-SHORT_OPTS="ha:c:v:s:lmM"
-LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails"
+SHORT_OPTS="ha:c:v:s:lmMC"
+LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails,check"
 
 # Option processing based on util-linux-2.13/getopt-parse.bash
 
@@ -111,6 +112,9 @@  while true ; do
 		fi
 		SELECTED='y'
 		shift 2 ;;
+	-C|--check)
+		CHECK='C=1'
+		shift ;;
 	-l|--list)
 		ONLY_LIST='y'
 		shift ;;
@@ -628,7 +632,7 @@  build_target() {
 	${MAKE} distclean >/dev/null
 	${MAKE} -s ${target}_config
 
-	${MAKE} ${JOBS} all \
+	${MAKE} ${JOBS} ${CHECK} all \
 		>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
 
 	# Check for 'make' errors