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