build script: use nproc on linux

This commit is contained in:
Christoph Schöning 2021-06-05 11:25:02 +02:00 committed by remi durand
parent 9667c4b323
commit 4548177820

4
BuildLinux.sh Normal file → Executable file
View File

@ -1,7 +1,7 @@
#!/bin/bash
export ROOT=`pwd`
export NCORES=`sysctl -n hw.ncpu`
export NCORES=`nproc --all`
while getopts ":ih" opt; do
case ${opt} in
@ -43,7 +43,6 @@ echo -n "[1/9] Updating submodules..."
popd
} > $ROOT/build/Build.log # Capture all command output
echo -n "[2/9] Changing date in version..."
{
# change date in version
@ -120,3 +119,4 @@ echo -n "[9/9] Generating Linux app..."
$ROOT/build/src/BuildLinuxImage.sh
fi
} &> $ROOT/build/Build.log # Capture all command output
echo "done"