buildCurrentSymlinkedKernel: use -l for make; reudce corecount

This commit is contained in:
layman 2020-09-04 11:46:35 +02:00
parent b4d7404d6f
commit dbb0b160ef

View file

@ -56,7 +56,7 @@ if [[ "$NOCONFIG" || "$FORCE" ]] ; then
mount /boot 2> /dev/null
CORES="$(getconf _NPROCESSORS_ONLN)"
(nice make -j -l$((CORES-1)) CC="ccache gcc") > "buildlog-$TIMESTAMP" || tail -n 20 "buildlog-$TIMESTAMP"
(nice make -j$((CORES-2)) -l$((CORES-2)) CC="ccache gcc") > "buildlog-$TIMESTAMP" || tail -n 20 "buildlog-$TIMESTAMP"
SUCCESS=$?
if [[ $SUCCESS == 0 ]] && [[ $CHROOTED == 1 ]] ; then
( make tarxz-pkg ) >> "buildlog-$TIMESTAMP"