cpuhotplug_do_kcompile_loop 312 B

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