optimizations
This commit is contained in:
parent
8bf3590e10
commit
0483374372
|
@ -99,7 +99,7 @@ if [ 1 -eq $STAGE ]; then
|
||||||
in_list "$EGENCACHE" ${TRUE_LIST[@]} &&
|
in_list "$EGENCACHE" ${TRUE_LIST[@]} &&
|
||||||
if [[ "git" == "$SYNC_TYPE" ]]; then
|
if [[ "git" == "$SYNC_TYPE" ]]; then
|
||||||
echo "---------- Updating metadata cache for Git portage tree ----------"
|
echo "---------- Updating metadata cache for Git portage tree ----------"
|
||||||
egencache --repo=gentoo --update --jobs=$((`grep "^processor" /proc/cpuinfo | wc -l`+1))
|
egencache --repo=gentoo --update --jobs=$((`grep "^processor" /proc/cpuinfo -c`+1))
|
||||||
[ 0 -ne $? ] && echo "Stage $STAGE: Metadata update failed ;-( =======" && exit $STAGE
|
[ 0 -ne $? ] && echo "Stage $STAGE: Metadata update failed ;-( =======" && exit $STAGE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ fi
|
||||||
# disable distcc for -march=native -mtune=native
|
# disable distcc for -march=native -mtune=native
|
||||||
|
|
||||||
grep 'CONFIG_X86_MARCH_NATIVE=y' .config &>/dev/null
|
grep 'CONFIG_X86_MARCH_NATIVE=y' .config &>/dev/null
|
||||||
jobs=$((`grep "^processor" /proc/cpuinfo | wc -l`+1))
|
jobs=$((`grep "^processor" /proc/cpuinfo -c`+1))
|
||||||
if [[ "$?" == 0 ]]; then
|
if [[ "$?" == 0 ]]; then
|
||||||
make -j$jobs
|
make -j$jobs
|
||||||
[ 0 -ne $? ] && echo "Kernel build failed ;-(" && exit -1
|
[ 0 -ne $? ] && echo "Kernel build failed ;-(" && exit -1
|
||||||
|
|
Loading…
Reference in New Issue