script: increase the number of concurrent compilers 01/252501/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 29 Jan 2021 04:07:08 +0000 (13:07 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 29 Jan 2021 04:27:47 +0000 (13:27 +0900)
It is safe to run as many compilation processes as twice
the number of CPUs.

Change-Id: Ic6c052d6c30f94920c3bdd272c2f1b19ecbe1ac2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
build-amlogic.sh

index 6fd8517..504ca4f 100755 (executable)
@@ -3,6 +3,7 @@
 CROSS_COMPILE=${CROSS_COMPILE:-aarch64-linux-gnu-}
 ARM_ARCH=arm64
 NCPUS=`cat /proc/cpuinfo | grep processor | wc -l`
+NCPUS=$(($NCPUS * 2))
 
 # Check this system has ccache
 check_ccache()