1#!/bin/sh 2 3# Must be run from a kernel source code directory 4 5echo $$ 6 7KERNEL_DIR=${1:-/usr/src/linux} 8 9if [ ! -d $KERNEL_DIR ]; then 10 echo "${0##*/}: ERROR: kernel directory - $KERNEL_DIR - does not exist" 11 exit 1 12fi 13 14cd $KERNEL_DIR || exit $? 15 16while : 17do 18 make mrproper 19 make defconfig 20 make -j20 bzImage 21done 22