update libowfat to latest stable version
[openadk.git] / scripts / bulk-qemu.sh
blob4bd153f839099451e15777282af34a2cc154cd27
1 #!/bin/sh
3 if [ ! -z $1 ];then
4 c=$1
5 else
6 c="uclibc-ng glibc musl uclibc"
7 fi
9 for libc in $c; do
10 for arch in $(cat toolchain/$libc/arch.lst);do
11 echo "Cleaning old stuff"
12 make cleandir
13 echo "Building $libc for $arch"
14 DEFAULT="ADK_VERBOSE=1 ADK_APPLIANCE=new ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=qemu-$arch ADK_TARGET_LIBC=$libc ADK_TARGET_FS=initramfspiggyback"
15 case $arch in
16 mips|microblaze)
17 for endian in little big;do
18 make $DEFAULT ADK_TARGET_ENDIAN=$endian defconfig all
19 cp -a firmware firmware.$arch.$endian
20 done
23 make $DEFAULT defconfig all
24 cp -a firmware firmware.$arch
26 esac
27 if [ $? -ne 0 ];then
28 echo "build failed"
29 exit 1
31 make cleandir
32 done
33 done