Skip to content

Commit

Permalink
Limit AASDK build jobs on RPi3, and raise default
Browse files Browse the repository at this point in the history
  • Loading branch information
breakingspell committed Jun 4, 2024
1 parent 1dc754b commit b74de8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ fi
#check if /etc/rpi-issue exists, if not set the install Args to be false
if [ -f /etc/rpi-issue ]
then
rpiModel=$(cat /sys/firmware/devicetree/base/model | awk '{print $3}')
echo "Detected Raspberry Pi Model $rpiModel"
installArgs="-DRPI_BUILD=true"
isRpi=true
else
Expand Down Expand Up @@ -313,7 +315,12 @@ else
fi

#beginning make
make -j2
if [[ $rpiModel -lt 4 ]]; then
#limit jobs on RPi 3 and below to prevent OOM freeze
make -j1
else
make -j4
fi

if [[ $? -eq 0 ]]; then
echo -e Aasdk Make completed successfully '\n'
Expand Down

0 comments on commit b74de8b

Please sign in to comment.