mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
Merge pull request #3623 from t-nelson/make_concurrency
Tweaks for setting make's -j option
This commit is contained in:
commit
72d0aebab0
@ -65,7 +65,12 @@ 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
|
||||
if test -z "${CONCURRENCY_MAKE_FACTOR}"; then
|
||||
CONCURRENCY_MAKE_FACTOR=1.0
|
||||
fi
|
||||
CONCURRENCY_MAKE_LEVEL=`echo "$(grep -c '^processor[[:cntrl:]]*:' /proc/cpuinfo) * ${CONCURRENCY_MAKE_FACTOR}" | bc | cut -d'.' -f1`
|
||||
fi
|
||||
|
||||
# cache size for ccache
|
||||
# Set the maximum size of the files stored in the cache. You can specify a
|
||||
|
Loading…
x
Reference in New Issue
Block a user