diff --git a/tools/commit-tests.sh b/tools/commit-tests.sh index 223468e4b..70d54f240 100755 --- a/tools/commit-tests.sh +++ b/tools/commit-tests.sh @@ -4,8 +4,9 @@ set -e set -x -# Allow variable core usage, default uses two cores, to set 8 cores for example : commit-tests.sh -j8 -: ${CORES:=2} +# Allow variable core usage, default uses all cpu cores, to set 8 cores for example : commit-tests.sh -j8 +num_cpus=`grep 'physical id' /proc/cpuinfo | sort -u | wc -l` +: ${CORES:=$num_cpus} # Default build treats warnings as errors, set -Wno-error to override, e.g.: commit-tests.sh -Wno-error : ${WERROR:=1} # A board name to build for, or ALL