mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
4ab64933e3
commit
33f336d528
1 changed files with 7 additions and 3 deletions
10
MAKEALL
10
MAKEALL
|
@ -19,6 +19,7 @@ usage()
|
||||||
-l, --list List all targets to be built
|
-l, --list List all targets to be built
|
||||||
-m, --maintainers List all targets and maintainer email
|
-m, --maintainers List all targets and maintainer email
|
||||||
-M, --mails List all targets and all affilated emails
|
-M, --mails List all targets and all affilated emails
|
||||||
|
-C, --check Enable build checking
|
||||||
-h, --help This help output
|
-h, --help This help output
|
||||||
|
|
||||||
Selections by these options are logically ANDed; if the same option
|
Selections by these options are logically ANDed; if the same option
|
||||||
|
@ -51,8 +52,8 @@ usage()
|
||||||
exit ${ret}
|
exit ${ret}
|
||||||
}
|
}
|
||||||
|
|
||||||
SHORT_OPTS="ha:c:v:s:lmM"
|
SHORT_OPTS="ha:c:v:s:lmMC"
|
||||||
LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails"
|
LONG_OPTS="help,arch:,cpu:,vendor:,soc:,list,maintainers,mails,check"
|
||||||
|
|
||||||
# Option processing based on util-linux-2.13/getopt-parse.bash
|
# Option processing based on util-linux-2.13/getopt-parse.bash
|
||||||
|
|
||||||
|
@ -111,6 +112,9 @@ while true ; do
|
||||||
fi
|
fi
|
||||||
SELECTED='y'
|
SELECTED='y'
|
||||||
shift 2 ;;
|
shift 2 ;;
|
||||||
|
-C|--check)
|
||||||
|
CHECK='C=1'
|
||||||
|
shift ;;
|
||||||
-l|--list)
|
-l|--list)
|
||||||
ONLY_LIST='y'
|
ONLY_LIST='y'
|
||||||
shift ;;
|
shift ;;
|
||||||
|
@ -627,7 +631,7 @@ build_target() {
|
||||||
${MAKE} distclean >/dev/null
|
${MAKE} distclean >/dev/null
|
||||||
${MAKE} -s ${target}_config
|
${MAKE} -s ${target}_config
|
||||||
|
|
||||||
${MAKE} ${JOBS} all \
|
${MAKE} ${JOBS} ${CHECK} all \
|
||||||
>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
|
>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
|
||||||
|
|
||||||
# Check for 'make' errors
|
# Check for 'make' errors
|
||||||
|
|
Loading…
Add table
Reference in a new issue