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>
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