diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2012-09-27 14:57:34 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-15 11:54:03 -0700 |
commit | 33f336d528d7e50947575613f2d9678bbced0445 (patch) | |
tree | d059168930fed5b018375b4198ae4610422d6914 /MAKEALL | |
parent | 4ab64933e3372ef0ad759fc7eae95713f9afd817 (diff) |
MAKEALL: add a -C/--check option to enable build checking
thanks to Tom Rini for the good idea.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'MAKEALL')
-rwxr-xr-x | MAKEALL | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 ;; @@ -627,7 +631,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 |