script: build: Use twice the number of CPUs for cuncurrent compile 57/308457/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 26 Mar 2024 02:23:49 +0000 (11:23 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 26 Mar 2024 02:25:20 +0000 (11:25 +0900)
It is safe to run twice the number of CPUs for concurrent compile
and it already calculates for it. So, Use twice the number of CPUs.

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

index db9d582..fa2332d 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -104,7 +104,7 @@ ARCH=riscv
 if ! [ -e .config ] ; then
        make ARCH=${ARCH} CROSS_COMPILE="$CROSS_COMPILER" tizen_visionfive2_defconfig
 fi
-make ARCH=${ARCH} CROSS_COMPILE="$CROSS_COMPILER" -j8
+make ARCH=${ARCH} CROSS_COMPILE="$CROSS_COMPILER" -j ${NCPUS}
 if [ ! -f "./arch/riscv/boot/Image" ]; then
        echo "Build fail"
        exit 1