2 # Build both x86 and ARM emulators by default
5 CONFIGURE_SCRIPT="./emulator_configure.sh"
9 NUMCPU=`grep -c 'cpu cores' /proc/cpuinfo`
12 NUMCPU=`echo $NUMBER_OF_PROCESSORS`
15 NUMCPU=`sysctl hw.ncpu | awk '{print $2}'`
19 echo "Number of CPUs $NUMCPU"
21 if [ "x$NUMCPU" != "x" ] ; then
22 NUMCPU=$(( NUMCPU + 1 ))
28 $CONFIGURE_SCRIPT $* && make -j$NUMCPU && make install