Merge pull request #2716 from el-tocino/mimic-arm-fix

Fix mimic build on arm
pull/2725/head
Åke 2020-10-09 08:31:22 +02:00 committed by GitHub
commit 58415e71d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -536,7 +536,7 @@ if ! pip install -r requirements/tests.txt ; then
fi
SYSMEM=$(free | awk '/^Mem:/ { print $2 }')
MAXCORES=$(($SYSMEM / 512000))
MAXCORES=$(($SYSMEM / 2202010))
MINCORES=1
CORES=$(nproc)
@ -545,7 +545,7 @@ if [[ $MAXCORES -lt 1 ]] ; then
MAXCORES=${MINCORES}
fi
# look for positive integer
# Be positive!
if ! [[ $CORES =~ ^[0-9]+$ ]] ; then
CORES=$MINCORES
elif [[ $MAXCORES -lt $CORES ]] ; then
@ -555,9 +555,8 @@ fi
echo "Building with $CORES cores."
#build and install pocketsphinx
#cd $TOP
#${TOP}/scripts/install-pocketsphinx.sh -q
#build and install mimic
cd "$TOP"
if [[ $build_mimic == 'y' || $build_mimic == 'Y' ]] ; then