build: Allow CONCURRENCY_MAKE_LEVEL to be set on cmdline

This commit is contained in:
Trent Nelson 2014-11-15 11:11:56 -07:00 committed by Stephan Raue
parent c57bf7318e
commit 151d9918ff

View File

@ -65,7 +65,9 @@ LINUX_DEPENDS="$PROJECT_DIR/$PROJECT/linux/linux.$TARGET_ARCH.conf $ROOT/package
# Concurrency make level (-j option)
# Try value 1 (default) to 4 on single CPU computer, or more on
# multi-processor computer (like hyperthreading SMP CPU)
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
if test -z "${CONCURRENCY_MAKE_LEVEL}"; then
CONCURRENCY_MAKE_LEVEL=`cat /proc/cpuinfo | grep -c '^processor[[:cntrl:]]*:'`
fi
# cache size for ccache
# Set the maximum size of the files stored in the cache. You can specify a