From 89ebbe24dd8932ec1cee8470111da17c90a3b520 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Wed, 13 Jan 2021 11:24:40 +0100 Subject: [PATCH] script: increase the number of concurrent compilers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- build-rpi4.sh | 1 + 1 file changed, 1 insertion(+) 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 " -- 2.7.4