diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-01 18:29:15 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-01 18:29:41 +0200 |
commit | a81c14cdffd24266eb9678a04e0965d464927bc3 (patch) | |
tree | 21473cff0bb8692947ac60089d100a754585d941 /scripts/bulk-toolchain.sh | |
parent | 8bd774aa56934175f756fa2f49e32c517fc1023e (diff) |
when using OpenADK for toolchain building, a musl system have to use -static-libgcc
Diffstat (limited to 'scripts/bulk-toolchain.sh')
-rwxr-xr-x | scripts/bulk-toolchain.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/bulk-toolchain.sh b/scripts/bulk-toolchain.sh new file mode 100755 index 000000000..ba087c24f --- /dev/null +++ b/scripts/bulk-toolchain.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +if [ ! -z $1 ];then + c=$1 +else + c="uclibc-ng glibc musl uclibc" +fi + +for libc in $c; do + for arch in $(cat toolchain/$libc/arch.lst);do + echo "Cleaning old stuff" + make cleandir + echo "Building $libc for $arch" + DEFAULT="VERBOSE=1 ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=toolchain-$arch ADK_TARGET_LIBC=$libc" + case $arch in + mips|microblaze|sh) + for endian in little big;do + make $DEFAULT ADK_TARGET_ENDIAN=$endian defconfig all + done + ;; + *) + make $DEFAULT defconfig all + ;; + esac + if [ $? -ne 0 ];then + echo "build failed" + exit 1 + fi + done +done |