| 131 | | If you have |
| | 131 | If you have multiple workstations configured to use [http://en.opensuse.org/Icecream ICECC], you can speed up building process significantly. |
| | 132 | |
| | 133 | Create a toolchain for distributed building (run@host): |
| | 134 | {{{ |
| | 135 | $ cd ~/swork |
| | 136 | $ browser-scripts/create-icecc-env.sh > icecc-env.sh |
| | 137 | }}} |
| | 138 | |
| | 139 | The resulted icecc-env.sh file will be similar to this: |
| | 140 | {{{ |
| | 141 | #!html |
| | 142 | <div style="color:#000055;border: 1pt dotted; margin:1em 2em 1em 2em; padding: 1em;background:none repeat scroll 0 0 #CCDDFF;"> |
| | 143 | <pre> |
| | 144 | icecc_tarball=$(readlink -f $HOME/icecc/icecc-build) |
| | 145 | parallel_builds="40" |
| | 146 | |
| | 147 | if [ -f $icecc_tarball ] ; then |
| | 148 | export ICECC_VERSION="i386:$icecc_tarball,x86_64:$icecc_tarball" |
| | 149 | export PATH="/home/azbest/icecc/bin:$PATH" |
| | 150 | export MAKEFLAGS="$MAKEFLAGS -j$parallel_builds" |
| | 151 | export DEB_BUILD_OPTIONS="$DEB_BUILD_OPTIONS,parallel=$parallel_builds" |
| | 152 | fi |
| | 153 | </pre></div> |
| | 154 | }}} |
| | 155 | |
| | 156 | Make the script runnable and execute it before building inside scratchbox when you need speedup. |