summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-11-15 12:39:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-11-15 12:39:03 +0100
commitff8ccaf75b75a5ff654606ca43b0171c27f7e2c5 (patch)
tree98294695c4cae362748528a6c9e8eb6dea37d6a2
parent5eb1c0814059d67c11a1b2cd2e0db0402ba32ec4 (diff)
add support for s390/glibc
-rwxr-xr-xembedded-test.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/embedded-test.sh b/embedded-test.sh
index 854409e..c718c01 100755
--- a/embedded-test.sh
+++ b/embedded-test.sh
@@ -33,7 +33,7 @@ arch_list_uclibcng="armv5 armv7 armeb arcv1 arcv2 arcv1-be arcv2-be avr32 bfin c
arch_list_musl="aarch64 armv5 armv7 armeb microblazeel microblazebe mips mipssf mipsel mipselsf or1k ppc sh4 sh4eb x86 x86_64"
# glibc
-arch_list_glibc="aarch64 armv5 armv7 armeb microblazeel microblazebe mips mipssf mipsel mipselsf mips64 mips64eln32 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 nios2 ppc ppcsf ppc64 sh4 sh4eb sparc sparc64 tile x86 x86_64"
+arch_list_glibc="aarch64 armv5 armv7 armeb microblazeel microblazebe mips mipssf mipsel mipselsf mips64 mips64eln32 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 nios2 ppc ppcsf ppc64 s390 sh4 sh4eb sparc sparc64 tile x86 x86_64"
topdir=$(pwd)
giturl=http://git.openadk.org/openadk.git
@@ -292,11 +292,16 @@ runtest() {
suffix=hard
noappend=1
;;
- powerpc64|ppc64)
+ ppc64)
cpu_arch=ppc64
qemu=qemu-system-${cpu_arch}
qemu_machine=pseries
;;
+ s390)
+ cpu_arch=s390x
+ qemu=qemu-system-${cpu_arch}
+ qemu_machine=s390-ccw-virtio-2.4
+ ;;
sh4)
cpu_arch=sh4
march=sh
@@ -685,6 +690,10 @@ build() {
DEFAULT="$DEFAULT ADK_APPLIANCE=test ADK_TARGET_ARCH=ppc64 ADK_TARGET_FS=initramfsarchive ADK_TARGET_SYSTEM=qemu-ppc64 ADK_TARGET_ENDIAN=big"
compile "$DEFAULT"
;;
+ s390)
+ DEFAULT="$DEFAULT ADK_APPLIANCE=test ADK_TARGET_ARCH=s390 ADK_TARGET_FS=initramfsarchive ADK_TARGET_SYSTEM=qemu-s390"
+ compile "$DEFAULT"
+ ;;
sh2)
DEFAULT="$DEFAULT ADK_APPLIANCE=new ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=toolchain-sh ADK_TARGET_CPU=sh2"
compile "$DEFAULT"
@@ -813,7 +822,7 @@ for lib in ${libc}; do
;;
glibc)
case $arch in
- armeb|m68k|nios2|sh4eb|tile)
+ armeb|m68k|nios2|s390|sh4eb|tile)
echo "runtime tests disabled for $arch."
;;
*)