randconfig.sh 578 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. test "x$ARCH" = "x" && ARCH=`uname -m`
  3. KCONFIG_ALLCONFIG=.config.allconfig
  4. (echo TARGET_$ARCH=y
  5. echo '# UCLIBC_PREGENERATED_LOCALE_DATA is not set'
  6. echo '# UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA is not set'
  7. ) > $KCONFIG_ALLCONFIG
  8. export KCONFIG_ALLCONFIG
  9. i=0
  10. while test ! -f STOP
  11. do
  12. make $* randconfig > /dev/null
  13. make $* silentoldconfig > /dev/null
  14. if (make $*) 2>&1 >& mk.log
  15. then
  16. :
  17. else
  18. i=`expr $i + 1`
  19. num=`printf "%.5d" $i`
  20. mv .config FAILED.$num.config
  21. mv mk.log FAILED.$num.log
  22. fi
  23. make distclean > /dev/null || true
  24. done