bulk-toolchain.sh 586 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. if [ ! -z $1 ];then
  3. c=$1
  4. else
  5. c="uclibc-ng glibc musl uclibc"
  6. fi
  7. for libc in $c; do
  8. for arch in $(cat toolchain/$libc/arch.lst);do
  9. echo "Cleaning old stuff"
  10. make cleandir
  11. echo "Building $libc for $arch"
  12. DEFAULT="VERBOSE=1 ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=toolchain-$arch ADK_TARGET_LIBC=$libc"
  13. case $arch in
  14. mips|microblaze|sh)
  15. for endian in little big;do
  16. make $DEFAULT ADK_TARGET_ENDIAN=$endian defconfig all
  17. done
  18. ;;
  19. *)
  20. make $DEFAULT defconfig all
  21. ;;
  22. esac
  23. if [ $? -ne 0 ];then
  24. echo "build failed"
  25. exit 1
  26. fi
  27. done
  28. done