Browse Source

better metag support, add sh2/sh3 toolchain support

Waldemar Brodkorb 10 years ago
parent
commit
5eb1c08140
1 changed files with 10 additions and 5 deletions
  1. 10 5
      embedded-test.sh

+ 10 - 5
embedded-test.sh

@@ -185,6 +185,7 @@ runtest() {
 			march=meta
 			march=meta
 			qemu=qemu-system-${march}
 			qemu=qemu-system-${march}
 			qemu_args="${qemu_args} -display none -device da,exit_threads=1 -chardev stdio,id=chan1 -chardev pty,id=chan2"
 			qemu_args="${qemu_args} -display none -device da,exit_threads=1 -chardev stdio,id=chan1 -chardev pty,id=chan2"
+			qemu_machine=01sp
 			piggyback=1
 			piggyback=1
 			;;
 			;;
 		microblazeel)
 		microblazeel)
@@ -354,9 +355,11 @@ runtest() {
 				exit 1
 				exit 1
 			fi
 			fi
 			qemuver=$(${qemu} -version|awk '{ print $4 }')
 			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"
 				echo "Your qemu version is too old. Please update to 2.1 or greater"
 				exit 1
 				exit 1
+			  fi
 			fi
 			fi
 			;;
 			;;
 		nsim)
 		nsim)
@@ -683,11 +686,11 @@ build() {
 			compile "$DEFAULT"
 			compile "$DEFAULT"
 			;;
 			;;
 		sh2)
 		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"
 			compile "$DEFAULT"
 			;;
 			;;
 		sh3)
 		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"
 			compile "$DEFAULT"
 			;;
 			;;
 		sh4)
 		sh4)
@@ -769,9 +772,11 @@ for lib in ${libc}; do
 	echo "Summary: testing $archlist with C library $lib and $testinfo"
 	echo "Summary: testing $archlist with C library $lib and $testinfo"
 	sleep 2
 	sleep 2
 	for arch in ${archlist}; do
 	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"
 			echo "Skipping already run test for $arch"
 			continue
 			continue
+		  fi
 		fi
 		fi
 		if [ "$arch" = "$skiparchs" ];then
 		if [ "$arch" = "$skiparchs" ];then
 			echo "Skipping $skiparchs"
 			echo "Skipping $skiparchs"
@@ -786,7 +791,7 @@ for lib in ${libc}; do
 					case $lib in 
 					case $lib in 
 					uclibc-ng)
 					uclibc-ng)
 						case $arch in
 						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."
 							echo "runtime tests disabled for $arch."
 							;;
 							;;
 						*)
 						*)