1
0

bulk-qemu.sh 724 B

123456789101112131415161718192021222324252627282930313233
  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="ADK_VERBOSE=1 ADK_APPLIANCE=new ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=qemu-$arch ADK_TARGET_LIBC=$libc ADK_TARGET_FS=initramfspiggyback"
  13. case $arch in
  14. mips|microblaze)
  15. for endian in little big;do
  16. make $DEFAULT ADK_TARGET_ENDIAN=$endian defconfig all
  17. cp -a firmware firmware.$arch.$endian
  18. done
  19. ;;
  20. *)
  21. make $DEFAULT defconfig all
  22. cp -a firmware firmware.$arch
  23. ;;
  24. esac
  25. if [ $? -ne 0 ];then
  26. echo "build failed"
  27. exit 1
  28. fi
  29. make cleandir
  30. done
  31. done