summaryrefslogtreecommitdiff
path: root/embedded-test.sh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2019-10-17 17:10:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2019-10-17 17:10:51 +0200
commitdc6d15a1258c1354d0193d6663be60156f6f3a52 (patch)
tree7f4e39772fcad9eadd771c5276a6fd24ccfcf728 /embedded-test.sh
parentd9d7c452be0124c5f5ce00263cc5a313917de66d (diff)
add riscv64 testing
Diffstat (limited to 'embedded-test.sh')
-rwxr-xr-xembedded-test.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/embedded-test.sh b/embedded-test.sh
index 934b26d..cd0b6d9 100755
--- a/embedded-test.sh
+++ b/embedded-test.sh
@@ -33,7 +33,7 @@ arch_list_uclibcng="aarch64 aarch64be alpha arcv1 arcv2 arcv1-be \
mips32 mips32r6 mips32sf mips32el mips32r6el mips32elsf \
mips64 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 \
mips64r6n32 mips64r6n64 mips64r6eln32 mips64r6eln64 \
- nios2 or1k ppc ppcsf sh2 sh2eb sh3 sh3eb sh4 sh4eb \
+ nios2 or1k ppc ppcsf riscv64 sh2 sh2eb sh3 sh3eb sh4 sh4eb \
sparc sparc-leon3 sparc64 tilegx x86 x86_64 \
xtensa xtensabe xtensa-nommu"
@@ -42,7 +42,7 @@ arch_list_musl="aarch64 aarch64be armv5 armv6 armv7 armeb \
m68k microblazeel microblazebe \
mips32 mips32r6 mips32sf mips32el mips32elsf \
mips64n32 mips64n64 mips64eln32 mips64eln64 \
- or1k ppc ppcsf ppc64 ppc64le s390 sh4 sh4eb \
+ or1k ppc ppcsf ppc64 ppc64le riscv64 s390 sh4 sh4eb \
x86 x86_64 x86_64_x32"
# glibc
@@ -51,7 +51,7 @@ arch_list_glibc="aarch64 aarch64be alpha armv6 armv7 \
mips32 mips32r6 mips32sf mips32el mips32elsf \
mips64 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 \
mips64r6n32 mips64r6n64 mips64r6eln32 mips64r6eln64 \
- nios2 ppc ppcsf ppc64 ppc64le s390 sh3 sh4 sh4eb sparc64 \
+ nios2 ppc ppcsf ppc64 ppc64le riscv64 s390 sh3 sh4 sh4eb sparc64 \
x86 x86_64 x86_64_x32"
# newlib
@@ -1048,6 +1048,19 @@ get_arch_info() {
qemu_machine=pseries
suffix=${cpu_arch}
;;
+ riscv64)
+ allowed_libc="uclibc-ng musl glibc newlib"
+ runtime_test="uclibc-ng musl glibc"
+ allowed_tests="toolchain boot libc mksh ltp native"
+ default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv64"
+ default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv64"
+ default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv64"
+ cpu_arch=riscv64
+ qemu=qemu-system-${cpu_arch}
+ qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
+ qemu_machine=virt
+ piggyback=1
+ ;;
rx)
allowed_libc="newlib"
runtime_test=""