buildCurrentSymlinkedKernel: use load average
This commit is contained in:
parent
bab3e4a23b
commit
6b92513ecc
1 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@ cd "$SRC_TREE" || exit 1
|
|||
if [[ ! -f $SRC_CONFIG ]] ; then
|
||||
NOCONFIG="1"
|
||||
fi
|
||||
|
||||
if [[ "$1" == "--force" ]] ; then
|
||||
FORCE="1"
|
||||
fi
|
||||
|
@ -45,7 +46,8 @@ if [[ "$NOCONFIG" || "$FORCE" ]] ; then
|
|||
echo mounting boot if not yet mounted
|
||||
mount /boot 2> /dev/null
|
||||
|
||||
(make -j17 -l15 CC="ccache gcc" && make install && make modules_install) > "buildlog-$TIMESTAMP" || tail -n 20 "buildlog-$TIMESTAMP"
|
||||
CORES="$(getconf _NPROCESSORS_ONLN)"
|
||||
(nice make -j -l$((CORES-1)) CC="ccache gcc" && make install ; make modules_install) > "buildlog-$TIMESTAMP" || tail -n 20 "buildlog-$TIMESTAMP"
|
||||
|
||||
GRUBMKONFIG="$(which grub2-mkconfig 2> /dev/null)"
|
||||
if [[ -z "$GRUBMKONFIG" ]] ; then
|
||||
|
@ -68,6 +70,6 @@ if [[ "$NOCONFIG" || "$FORCE" ]] ; then
|
|||
|
||||
fi
|
||||
|
||||
cd "${LWD}" || exit 1
|
||||
cd "${LWD}" || exit 1
|
||||
|
||||
emerge @module-rebuild
|
||||
|
|
Loading…
Add table
Reference in a new issue