Browse Source

more arc stuff

Waldemar Brodkorb 11 years ago
parent
commit
77a178222b
1 changed files with 10 additions and 2 deletions
  1. 10 2
      embedded-test.sh

+ 10 - 2
embedded-test.sh

@@ -481,7 +481,7 @@ EOF
 }
 
 compile() {
-	rm .config*
+	rm .config* .defconfig 2>/dev/null
 	make $1 defconfig
 	for pkg in $pkgs; do p=$(echo $pkg|tr '[:lower:]' '[:upper:]');printf "ADK_COMPILE_$p=y\nADK_PACKAGE_$p=y" >> .config;done
 	make $1 all
@@ -555,6 +555,14 @@ build() {
 			DEFAULT="$DEFAULT ADK_TARGET_ARCH=aarch64 ADK_TARGET_SYSTEM=qemu-aarch64"
 			compile "$DEFAULT"
 			;;
+		arc)
+			DEFAULT="$DEFAULT ADK_TARGET_ARCH=arc ADK_TARGET_SYSTEM=toolchain-arc ADK_TARGET_ENDIAN=little"
+			compile "$DEFAULT"
+			;;
+		arcbe)
+			DEFAULT="$DEFAULT ADK_TARGET_ARCH=arc ADK_TARGET_SYSTEM=toolchain-arc ADK_TARGET_ENDIAN=big"
+			compile "$DEFAULT"
+			;;
 		arm)
 			DEFAULT="$DEFAULT ADK_TARGET_ARCH=arm ADK_TARGET_SYSTEM=qemu-arm ADK_TARGET_ABI=eabi ADK_TARGET_ENDIAN=little"
 			compile "$DEFAULT"
@@ -643,7 +651,7 @@ for arch in ${archlist}; do
 		for test in ${tests}; do
 			if [ $test = "boot" -o $test = "libc" -o $test = "ltp" -o $test = "native" ];then
 				case $arch in
-					bfin|m68k|m68k-nommu|ppc|sheb|mips64eln32|mips64n32)
+					arc|arcbe|bfin|m68k|m68k-nommu|ppc|sheb|mips64eln32|mips64n32)
 					echo "runtime tests disabled for $arch."
 					;;
 				*)