On non Linux systems, (g)make distrib stops halfway

because of QEMU not supported.
Symplifying cores counting data gathering.
This commit is contained in:
David Carlier 2019-12-20 16:37:48 +00:00
parent d8fb4a8e19
commit 5f0a252fae
2 changed files with 4 additions and 4 deletions

View File

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

View File

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