diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-15 11:46:09 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-11-15 11:46:09 +0100 |
commit | 5eb1c0814059d67c11a1b2cd2e0db0402ba32ec4 (patch) | |
tree | 834be80ab521b14283525078cc216bf09b49151f | |
parent | c840d5a891757d221a9e60afe40f08387fdc1d45 (diff) |
better metag support, add sh2/sh3 toolchain support
-rwxr-xr-x | embedded-test.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/embedded-test.sh b/embedded-test.sh index ce7e6b7..854409e 100755 --- a/embedded-test.sh +++ b/embedded-test.sh @@ -185,6 +185,7 @@ runtest() { march=meta qemu=qemu-system-${march} qemu_args="${qemu_args} -display none -device da,exit_threads=1 -chardev stdio,id=chan1 -chardev pty,id=chan2" + qemu_machine=01sp piggyback=1 ;; microblazeel) @@ -354,9 +355,11 @@ runtest() { exit 1 fi qemuver=$(${qemu} -version|awk '{ print $4 }') - if [ $(echo $qemuver |sed -e "s#\.##g" -e "s#,##") -lt 210 ];then + if [ "$arch" != "metag" ]; then + if [ $(echo $qemuver |sed -e "s#\.##g" -e "s#,##") -lt 210 ];then echo "Your qemu version is too old. Please update to 2.1 or greater" exit 1 + fi fi ;; nsim) @@ -683,11 +686,11 @@ build() { compile "$DEFAULT" ;; sh2) - DEFAULT="$DEFAULT ADK_APPLIANCE=new ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfsarchive ADK_TARGET_SYSTEM=toolchain-sh ADK_TARGET_CPU=sh2" + DEFAULT="$DEFAULT ADK_APPLIANCE=new ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=toolchain-sh ADK_TARGET_CPU=sh2" compile "$DEFAULT" ;; sh3) - DEFAULT="$DEFAULT ADK_APPLIANCE=new ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfsarchive ADK_TARGET_SYSTEM=toolchain-sh ADK_TARGET_CPU=sh3" + DEFAULT="$DEFAULT ADK_APPLIANCE=new ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=toolchain-sh ADK_TARGET_CPU=sh3" compile "$DEFAULT" ;; sh4) @@ -769,9 +772,11 @@ for lib in ${libc}; do echo "Summary: testing $archlist with C library $lib and $testinfo" sleep 2 for arch in ${archlist}; do - if [ $continue -eq 1 -a -f "REPORT.${arch}.${tests}.${libver}" -o -f "REPORT.${arch}.toolchain.${libver}" ]; then + if [ $continue -eq 1 ]; then + if [ -f "REPORT.${arch}.${tests}.${libver}" -o -f "REPORT.${arch}.toolchain.${libver}" ]; then echo "Skipping already run test for $arch" continue + fi fi if [ "$arch" = "$skiparchs" ];then echo "Skipping $skiparchs" @@ -786,7 +791,7 @@ for lib in ${libc}; do case $lib in uclibc-ng) case $arch in - arcv1-be|arcv2-be|armeb|avr32|bfin|c6x|crisv10|h8300|lm32|microblazeel|microblazebe|m68k|m68k-nommu|nios2|or1k|sh4eb) + arcv1-be|arcv2-be|armeb|avr32|bfin|c6x|crisv10|h8300|lm32|microblazeel|microblazebe|m68k|m68k-nommu|nios2|or1k|sh2|sh3|sh4eb) echo "runtime tests disabled for $arch." ;; *) |