script: increase the number of concurrent compilers 04/251404/1
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 13 Jan 2021 10:24:40 +0000 (11:24 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 13 Jan 2021 10:24:40 +0000 (11:24 +0100)
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 <l.stelmach@samsung.com>
build-rpi4.sh

index 31a8213..7c2930d 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 NCPUS=`cat /proc/cpuinfo | grep processor | wc -l`
+NCPUS=$(($NCPUS * 2))
 
 if [ $# != 1 ]; then
        echo "Usage : $0 <architecture>"