]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - MAKEALL
fdt: Export fdtdec_lookup() and fix the name
[karo-tx-uboot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index 806f21fc10b0b262a273617a58d4b96f770eba0a..84a5c92cf39308ddef93ab17908b84811c4971d3 100755 (executable)
--- 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 ;;
@@ -411,7 +415,6 @@ LIST_au1xx0="               \
        dbau1100        \
        dbau1500        \
        dbau1550        \
-       gth2            \
 "
 
 LIST_mips="            \
@@ -628,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
@@ -637,7 +640,7 @@ build_target() {
        fi
 
        if [ $BUILD_MANY == 1 ] ; then
-               ${MAKE} tidy
+               ${MAKE} -s tidy
 
                if [ -s ${LOG_DIR}/${target}.ERR ] ; then
                        cp ${LOG_DIR}/${target}.ERR ${OUTPUT_PREFIX}/ERR/${target}