check_config_options.sh 341 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. ret=0
  3. # Make sure nothing uses the ARCH_HAS_MMU option anymore
  4. result=$(
  5. find ../.. \
  6. | grep -v \
  7. -e include/bits/uClibc_config.h \
  8. -e /test/ \
  9. -e /.svn/ \
  10. | xargs grep -sHI \
  11. __ARCH_HAS_MMU__
  12. )
  13. if [ -n "$result" ] ; then
  14. echo "The build system is incorrectly using ARCH_HAS_MMU:"
  15. echo "$result"
  16. ret=1
  17. fi
  18. exit $ret