Run this script in the top level linux kernel source directory tree:

#!/bin/sh

export DISTCC_HOSTS="localhost 192.168.1.1 192.168.1.10"
export CCACHE_PREFIX="distcc"
export PATH="/usr/lib/ccache:$PATH"

export CONCURRENCY_LEVEL=10

BUILD_NICE="nice -19"

BUILD_TIME="/usr/bin/time"

BUILD_MAKE="make-kpkg --rootcmd fakeroot --append-to-version -mykernel-$(hostname) --revision $(date +'%Y%m%d%H%M')"

BUILD_CLEAN="clean"

BUILD_TARGET="kernel_image kernel_headers modules_image"

$BUILD_NICE $BUILD_TIME $BUILD_MAKE $BUILD_CLEAN && $BUILD_NICE $BUILD_TIME $BUILD_MAKE $BUILD_TARGET