It uses NCPUS dynamically.
Change-Id: Ib7b1229f387b9c91f4eb2b29cc8f3bfe207fcaaa
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@gmail.com>
#!/bin/bash
+NCPUS=`cat /proc/cpuinfo | grep processor | wc -l`
+
if [ $# != 1 ]; then
echo "Usage : $0 <architecture>"
echo " architecture : arm or arm64"
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- tizen_bcm2711_defconfig
fi
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
+ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j $NCPUS
if [ ! -f "./arch/arm/boot/zImage" ]; then
echo "Build fail"