We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc754b commit b74de8bCopy full SHA for b74de8b
install.sh
@@ -33,6 +33,8 @@ fi
33
#check if /etc/rpi-issue exists, if not set the install Args to be false
34
if [ -f /etc/rpi-issue ]
35
then
36
+ rpiModel=$(cat /sys/firmware/devicetree/base/model | awk '{print $3}')
37
+ echo "Detected Raspberry Pi Model $rpiModel"
38
installArgs="-DRPI_BUILD=true"
39
isRpi=true
40
else
@@ -313,7 +315,12 @@ else
313
315
fi
314
316
317
#beginning make
- make -j2
318
+ if [[ $rpiModel -lt 4 ]]; then
319
+ #limit jobs on RPi 3 and below to prevent OOM freeze
320
+ make -j1
321
+ else
322
+ make -j4
323
+ fi
324
325
if [[ $? -eq 0 ]]; then
326
echo -e Aasdk Make completed successfully '\n'
0 commit comments