From: Łukasz Stelmach Date: Wed, 13 Jan 2021 10:24:40 +0000 (+0100) Subject: script: increase the number of concurrent compilers X-Git-Tag: accepted/tizen/unified/20210119.130216~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89ebbe24dd8932ec1cee8470111da17c90a3b520;p=platform%2Fkernel%2Flinux-rpi.git script: increase the number of concurrent compilers It is safe to run as many compilation processes as twice the number of CPUs. This is the default settings of RPM building process in Tizen. Change-Id: Id68d9d31bc54da11c8732689645408241a517887 Signed-off-by: Łukasz Stelmach --- diff --git a/build-rpi4.sh b/build-rpi4.sh index 31a8213..7c2930d 100755 --- a/build-rpi4.sh +++ b/build-rpi4.sh @@ -1,6 +1,7 @@ #!/bin/bash NCPUS=`cat /proc/cpuinfo | grep processor | wc -l` +NCPUS=$(($NCPUS * 2)) if [ $# != 1 ]; then echo "Usage : $0 "