[OpenWrt-Devel] Fast build testing [Was: Git mirror with branches, tags and full history]
Bastian Bittorf
bittorf at bluebottle.com
Fri Dec 11 02:26:33 EST 2015
* John Szakmeister <john at szakmeister.net> [02.12.2015 16:04]:
> > today tested PowerPC/mpc85xx and this needs 160 seconds:
> > make clean; make -j25
>
> Do these numbers include building the toolchain? And I assume it does
> not include downloading all the sources, correct?
just bumping this thread:
is there a way to just build *all* (or nearly all) packages?
here is the script for copy/paste for measuring *your* time:
(please make sure '/usr/bin/time' is installed)
work()
{
echo "CONFIG_TARGET_${1:-mpc85xx}=y" >.config
THREADS=$( grep -sc ^processor /proc/cpuinfo )
THREADS=$(( THREADS + 1 ))
S0='defconfig'
S1="tools/install $( test "$(id -u)" = 0 && echo FORCE_UNSAFE_CONFIGURE=1 )"
S2='toolchain/install'
S3='target/compile'
S4='package/compile'
S5='package/install'
S6='package/preconfig'
S7='target/install'
S8='package/index'
S9='clean'
for STEP in "$S0" "$S1" "$S2" "$S3" "$S4" "$S5" "$S6" "$S7" "$S8" "$S9" '' dirclean; do
COMMAND="make -j$THREADS $STEP"
echo "real: $COMMAND | $( cat /proc/loadavg ) - space: $( du -sh )"
/usr/bin/time -f "real %e secs" $COMMAND || break
done
}
you can run it (inside the openwrt-dir) with:
# work ar71xx 2>&1 | tee LOG
after it has run you can get the stats with the horrible one-liner:
# grep ^real LOG | while read -r L; do set -- $L; test "$1" != 'real:' && echo "$L $O" || { shift; O="$*"; }; done
bye, bastian
PS: i asked some of my customers if they agree to setup some strong
boxes inside theire data-center for just building openwrt and at
least 3 are fine with this.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list