summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsummon-arm-toolchain9
1 files changed, 8 insertions, 1 deletions
diff --git a/summon-arm-toolchain b/summon-arm-toolchain
index 6f011a9..b7314cf 100755
--- a/summon-arm-toolchain
+++ b/summon-arm-toolchain
@@ -62,7 +62,11 @@ LIBOPENSTM32=master
# Flags section
##############################################################################
-CPUS=$(getconf _NPROCESSORS_ONLN)
+if which getconf > /dev/null; then
+ CPUS=$(getconf _NPROCESSORS_ONLN)
+else
+ CPUS=1
+fi
PARALLEL=-j$((CPUS + 1))
echo "${CPUS} cpu's detected running make with '${PARALLEL}' flag"
@@ -118,6 +122,9 @@ case "$(uname)" in
--with-mpc=${DARWIN_OPT_PATH} \
-with-libiconv-prefix=${DARWIN_OPT_PATH}"
;;
+ CYGWIN*)
+ echo "Found CygWin that means Windows most likely."
+ ;;
*)
echo "Found unknown OS. Aborting!"
exit 1