Projecte

General

Perfil

« Anterior | Següent » 

Revisió 56e7bcfe

Afegit per Pau Escrich fa més de 10 anys

Parallel procs (-j) can be specified as a variable, if not the number of CPU cores is used

Visualitza les diferències:

nightlycompile.sh
# Date of the last commit
LAST_COMMIT_DATE=$(cd build/qmp && git log -1 origin/${BRANCH} --format="%ct")
# Number of parallel procs
[ -z "$J" ] && J=$(cat /proc/cpuinfo | grep -c processor)
(cd build/qmp && git checkout $BRANCH)
......
}
echo "Compiling target $t"
nice -n 25 make T=$t build J=2 QMP_GIT_BRANCH=$BRANCH COMMUNITY=$COMMUNITY EXTRA_PACKS=$EXTRA_PACKS
nice -n 25 make T=$t build J=$J QMP_GIT_BRANCH=$BRANCH COMMUNITY=$COMMUNITY EXTRA_PACKS=$EXTRA_PACKS
[ $? -ne 0 ] && [ ! -z "$MAIL" ] && echo "Error detected during QMP compilation process (for target $t)" | mail -s "[qMp] build system" $MAIL && ./scripts/extra-packages.script POST_BUILD "ar71xx" $t $EXTRA_PACKS
done

També disponible a: Unified diff