On non Linux systems, (g)make distrib stops halfway
because of QEMU not supported.
Symplifying cores counting data gathering.
MODIFY
qemu_mode/build_qemu_support.sh
qemu_mode/build_qemu_support.sh
@@ -44,7 +44,7 @@ echo "[*] Performing basic sanity checks..."
if [ ! "`uname -s`" = "Linux" ]; then
echo "[-] Error: QEMU instrumentation is supported only on Linux."
- exit 1
+ exit 0
fi

MODIFY
unicorn_mode/build_unicorn_support.sh
unicorn_mode/build_unicorn_support.sh
@@ -73,19 +73,19 @@ if [ "$PLT" = "Linux" ]; then
fi
if [ "$PLT" = "Darwin" ]; then
- CORES=`sysctl hw.ncpu | cut -d' ' -f2`
+ CORES=`sysctl -n hw.ncpu`
TARCMD=tar
fi
if [ "$PLT" = "FreeBSD" ]; then
MAKECMD=gmake
- CORES=`sysctl hw.ncpu | cut -d' ' -f2`
+ CORES=`sysctl -n hw.ncpu`
TARCMD=gtar
fi
if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then
MAKECMD=gmake
- CORES=`sysctl hw.ncpu | cut -d'=' -f2`
+ CORES=`sysctl -n hw.ncpu`
TARCMD=gtar
fi

On non Linux systems, (g)make distrib stops halfway
because of QEMU not supported.
Symplifying cores counting data gathering.