Use nproc (if available) instead of the hardcoded 8 parallel make jobs.
Signed-off-by: Jouni Malinen <j@w1.fi>
esac
done
+JOBS=`nproc`
+if [ -z "$ABC" ]; then
+ JOBS=8
+fi
+
echo "Building TNC testing tools"
cd tnc
-make QUIET=1 -j8
+make QUIET=1 -j$JOBS
echo "Building wlantest"
cd ../../../wlantest
-make QUIET=1 -j8 > /dev/null
+make QUIET=1 -j$JOBS > /dev/null
echo "Building hs20-osu-client"
cd ../hs20/client/
fi
fi
-make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
+make QUIET=1 -j$JOBS hostapd hostapd_cli hlr_auc_gw
echo "Building wpa_supplicant"
cd ../wpa_supplicant
if [ -z $FIPSLD_CC ]; then
export FIPSLD_CC=gcc
fi
-make QUIET=1 -j8
+make QUIET=1 -j$JOBS