12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937 |
- #!/usr/bin/env mksh
- #
- # Copyright © 2014-2024
- # Waldemar Brodkorb <wbx@openadk.org>
- #
- # Provided that these terms and disclaimer and all copyright notices
- # are retained or reproduced in an accompanying document, permission
- # is granted to deal in this work without restriction, including un‐
- # limited rights to use, publicly perform, distribute, sell, modify,
- # merge, give away, or sublicence.
- #
- # This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to
- # the utmost extent permitted by applicable law, neither express nor
- # implied; without malicious intent or gross negligence. In no event
- # may a licensor, author or contributor be held liable for indirect,
- # direct, other damage, loss, or other issues arising in any way out
- # of dealing in the work, even if advised of the possibility of such
- # damage or existence of a defect, except proven that it results out
- # of said person’s immediate fault when using the work as intended.
- #
- # Alternatively, this work may be distributed under the Terms of the
- # General Public License, any version as published by the Free Soft‐
- # ware Foundation.
- # uClibc-ng
- arch_list_uclibcng="aarch64 aarch64be alpha arcv2 arc32 \
- armv5 armv5-nommu-arm armv5-nommu-thumb armv5-nommu-fdpic armv5-nommu-elf \
- armv6 armv7 armv7-thumb2 armv8 armv8-thumb2 armeb avr32 \
- bf512-flat bf512-fdpic bf532-flat bf532-fdpic \
- c6x crisv10 crisv32 csky-ck807 csky-ck810 \
- h8300-h8300h h8300-h8s hppa ia64 kvx \
- m68k m68k-nommu-flat m68k-nommu-elf metag microblazeel microblazebe \
- mips32 mips32r6 mips32sf mips32el mips32r6el mips32elsf \
- mips64 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 \
- mips64r6n32 mips64r6n64 mips64r6eln32 mips64r6eln64 \
- nios2 or1k ppc ppcsf riscv32 riscv32-nommu-flat riscv32-nommu-elf \
- riscv64 riscv64-nommu-flat riscv64-nommu-elf \
- sh2 sh2eb sh3 sh3eb sh4 sh4eb sparc sparc-leon3 sparc64 tilegx x86 x86_64 \
- xtensa xtensabe xtensa-nommu"
- # musl
- 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 riscv32 riscv64 s390 sh4 sh4eb \
- x86 x86_64 x86_64_x32"
- # glibc
- arch_list_glibc="aarch64 aarch64be alpha armv7 arcv2 arc32 \
- csky-ck807 csky-ck810 m68k microblazeel microblazebe \
- mips32 mips32r6 mips32sf mips32el mips32elsf \
- mips64 mips64n32 mips64n64 mips64el mips64eln32 mips64eln64 \
- mips64r6n32 mips64r6n64 mips64r6eln32 mips64r6eln64 loongarch \
- nios2 or1k ppc ppcsf ppc64 ppc64le riscv32 riscv64 s390 sh4 sh4eb sparc64 \
- x86_64 x86_64_x32"
- # newlib
- arch_list_newlib="aarch64 aarch64be armv5 bfin crisv10 \
- crisv32 csky-ck807 epiphany ft32 frv h8300-h8300h ia64 m32r m68k microblazeel \
- microblazebe mips32 mips32el mn10300 moxie msp430 nds32le nds32be \
- nios2 or1k ppc riscv64 rx sh sparc v850 x86 x86_64 xtensa"
- topdir=$(pwd)
- giturl=git://openadk.org/git/openadk
- valid_os="linux"
- valid_libc="uclibc-ng musl glibc newlib"
- valid_tests="toolchain boot libc ltp mksh native"
- valid_thread_types="none lt nptl"
- bootserver=10.0.0.1
- buildserver=10.0.0.2
- tools='make git gzip cpio tar awk sed'
- f=0
- for tool in $tools; do
- if ! which $tool >/dev/null; then
- echo "Checking if $tool is installed... failed"
- f=1
- fi
- done
- if [ $f -eq 1 ]; then
- exit 1
- fi
- help() {
- cat >&2 <<EOF
- Syntax: $0 [ --libc=<libc> --os=<os> --arch=<arch> --test=<test> ]
- Explanation:
- --libc=<libc> C library to use (${valid_libc})
- --os=<operating system> operating system to use (${valid_os})
- --arch=<arch> architecture to check (otherwise all supported)
- --skip-arch=<arch> architectures to skip when all choosen
- --targets=<targets.txt> a list of remote targets to test via nfsroot or chroot
- --test=<test> run test (${valid_tests}), default toolchain
- --threads=<type> configure threading support (${valid_thread_types}) (only for uClibc-ng)
- --libc-source=<dir> use directory with source for C library
- --gcc-source=<dir> use directory with source for gcc
- --binutils-source=<dir> use directory with source for binutils
- --gdb-source=<dir> use directory with source for gdb
- --kernel-source=<dir> use directory with source for kernel
- --libc-version=<version> use version of C library
- --gcc-version=<version> use version of gcc
- --binutils-version=<version> use version of binutils
- --gdb-version=<version> use version of gdb
- --kernel-version=<version> use version of kernel
- --ntp=<ntpserver> set NTP server for test run
- --packages=<packagelist> add extra packages to the build
- --update update OpenADK source via git pull, before building
- --create create toolchain archive for external usage
- --continue continue on a broken build
- --cleandir clean OpenADK build directories before build
- --clean clean OpenADK build directory for single arch
- --no-clean do not clean OpenADK build directory for single arch
- --cxx enable C++ toolchain
- --static use static compilation
- --ssp use smack stashing protection
- --debug make debug build
- --verbose enable verbose output from OpenADK
- --shell start a shell instead of test autorun
- --timestamp add a timestamp to REPORT
- --help this help text
- EOF
- exit 1
- }
- cont=0
- clean=0
- noclean=0
- cleandir=0
- shell=0
- update=0
- verbose=0
- create=0
- static=0
- cxx=0
- ssp=0
- debug=0
- timestamp=0
- ntp=""
- libc=""
- os="linux"
- test="toolchain"
- while [[ $1 != -- && $1 = -* ]]; do case $1 {
- (--cleandir) cleandir=1; shift ;;
- (--clean) clean=1; shift ;;
- (--no-clean) noclean=1; shift ;;
- (--verbose) verbose=1; shift ;;
- (--update) update=1; shift ;;
- (--create) create=1; shift ;;
- (--static) static=1; shift ;;
- (--cxx) cxx=1; shift ;;
- (--ssp) ssp=1; shift ;;
- (--debug) debug=1; shift ;;
- (--continue) cont=1; shift ;;
- (--shell) shell=1 shift ;;
- (--timestamp) timestamp=1 shift ;;
- (--libc=*) libc=${1#*=}; shift ;;
- (--os=*) os=${1#*=}; shift ;;
- (--arch=*) archs=${1#*=}; shift ;;
- (--skip-arch=*) skiparchs=${1#*=}; shift ;;
- (--targets=*) targets=${1#*=}; shift ;;
- (--test=*) test=${1#*=}; shift ;;
- (--threads=*) threads=${1#*=}; shift ;;
- (--libc-source=*) libcsource=${1#*=}; shift ;;
- (--gcc-source=*) gccsource=${1#*=}; shift ;;
- (--binutils-source=*) binutilssource=${1#*=}; shift ;;
- (--gdb-source=*) gdbsource=${1#*=}; shift ;;
- (--kernel-source=*) kernelsource=${1#*=}; shift ;;
- (--libc-version=*) libcversion=${1#*=}; shift ;;
- (--gcc-version=*) gccversion=${1#*=}; shift ;;
- (--binutils-version=*) binutilsversion=${1#*=}; shift ;;
- (--gdb-version=*) gdbversion=${1#*=}; shift ;;
- (--kernel-version=*) kernelversion=${1#*=}; shift ;;
- (--packages=*) packages=${1#*=}; shift ;;
- (--ntp=*) ntp=${1#*=}; shift ;;
- (--help) help; shift ;;
- (--*) echo "unknown option $1"; exit 1 ;;
- (-*) help ;;
- }; done
- if [ ! -z $targets ]; then
- targetmode=1
- fi
- if [ -z "$libc" ]; then
- if [[ $libcversion ]]; then
- echo "You can not use a specific C library version without setting the C library"
- exit 1
- else
- libc="uclibc-ng musl glibc newlib"
- fi
- fi
- if [ $static -eq 1 ]; then
- rsuffix=${rsuffix}.static
- fi
- if [ $ssp -eq 1 ]; then
- rsuffix=${rsuffix}.ssp
- fi
- if [ $debug -eq 1 ]; then
- rsuffix=${rsuffix}.debug
- fi
- if [ $cxx -eq 1 ]; then
- rsuffix=${rsuffix}.cxx
- fi
- if [ $timestamp -eq 1 ]; then
- rsuffix=${rsuffix}.$(date +%s)
- fi
- if [ ! -d openadk ]; then
- git clone $giturl
- if [ $? -ne 0 ]; then
- echo "Cloning from $giturl failed."
- exit 1
- fi
- else
- if [ $update -eq 1 ]; then
- (cd openadk && git pull)
- if [ $? -ne 0 ]; then
- echo "Updating from $giturl failed."
- exit 1
- fi
- fi
- fi
- get_arch_info() {
- arch=$1
- lib=$2
- emulator=qemu
- gdbcmd=
- noappend=0
- endian=
- suffix=
- allowed_libc=
- runtime_test=
- qemu_args="-nographic"
- #qemu_args="-nographic -append debug"
- case ${arch} in
- aarch64)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-aarch64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-aarch64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-aarch64"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=aarch64"
- cpu_arch=cortex_a53
- qemu_machine=virt
- qemu_args="${qemu_args} -m 256 -cpu cortex-a53 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- suffix=${cpu_arch}
- skiplt=aarch64
- ;;
- aarch64be)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_SYSTEM=generic-aarch64 ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_SYSTEM=generic-aarch64 ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=aarch64 ADK_TARGET_SYSTEM=generic-aarch64 ADK_TARGET_ENDIAN=big"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=aarch64 ADK_TARGET_ENDIAN=big"
- cpu_arch=cortex_a53
- qemu_machine=virt
- qemu_args="${qemu_args} -cpu cortex-a53 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- suffix=${cpu_arch}
- skiplt=aarch64be
- ;;
- alpha)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc ltp mksh"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=alpha ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-alpha"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=alpha ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-alpha"
- march=alpha
- qemu=qemu-system-alpha
- qemu_machine=clipper
- qemu_args="${qemu_args} -monitor null -m 256"
- ;;
- armv5)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=soft"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=arm ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=arm926ej-s"
- cpu_arch=arm926ej_s
- march=arm-versatilepb
- qemu=qemu-system-arm
- qemu_machine=versatilepb
- suffix=${cpu_arch}_soft_eabi_arm
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -cpu arm926 -net user -net nic,model=smc91c111 -dtb ${dtbdir}/versatile-pb.dtb"
- ;;
- armv5-nommu-arm)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no ADK_TARGET_INSTRUCTION_SET=arm ADK_TARGET_BINFMT=flat ADK_TARGET_THREADS=lt ADK_TARGET_FLOAT=soft"
- cpu_arch=arm926ej_s
- march=arm-versatilepb
- qemu=qemu-system-arm
- qemu_machine=versatilepb
- suffix=${cpu_arch}_soft_eabi_flat_arm_nommu
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -m 256 -cpu arm926 -net user -net nic,model=smc91c111 -dtb ${dtbdir}/versatile-pb.dtb"
- ;;
- armv5-nommu-thumb)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no ADK_TARGET_INSTRUCTION_SET=thumb ADK_TARGET_BINFMT=flat ADK_TARGET_THREADS=lt ADK_TARGET_FLOAT=soft"
- cpu_arch=arm926ej_s
- march=arm-versatilepb
- qemu=qemu-system-arm
- qemu_machine=versatilepb
- suffix=${cpu_arch}_soft_eabi_flat_thumb_nommu
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -m 256 -cpu arm926 -net user -net nic,model=smc91c111 -dtb ${dtbdir}/versatile-pb.dtb"
- ;;
- armv5-nommu-fdpic)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no ADK_TARGET_INSTRUCTION_SET=arm ADK_TARGET_BINFMT=fdpic ADK_TARGET_THREADS=none ADK_TARGET_FLOAT=soft"
- cpu_arch=arm926ej_s
- march=arm-versatilepb
- qemu=qemu-system-arm
- qemu_machine=versatilepb
- suffix=${cpu_arch}_soft_eabi_fdpic_arm_nommu
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -m 256 -cpu arm926 -net user -net nic,model=smc91c111 -dtb ${dtbdir}/versatile-pb.dtb"
- ;;
- armv5-nommu-elf)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-versatilepb ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no ADK_TARGET_INSTRUCTION_SET=arm ADK_TARGET_BINFMT=elf ADK_TARGET_THREADS=none ADK_TARGET_FLOAT=soft"
- cpu_arch=arm926ej_s
- march=arm-versatilepb
- qemu=qemu-system-arm
- qemu_machine=versatilepb
- suffix=${cpu_arch}_soft_eabi_elf_arm_nommu
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -m 256 -cpu arm926 -net user -net nic,model=smc91c111 -dtb ${dtbdir}/versatile-pb.dtb"
- ;;
- armv6)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-realview-eb-mpcore"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-realview-eb-mpcore"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-realview-eb-mpcore"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=arm ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=arm1176jzf-s"
- cpu_arch=mpcore
- march=arm-realview-eb-mpcore
- qemu=qemu-system-arm
- qemu_machine=realview-eb-mpcore
- suffix=${cpu_arch}_hard_eabihf_arm
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -net user -net nic -dtb ${dtbdir}/arm-realview-eb-11mp-ctrevb.dtb"
- ;;
- armv7)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9"
- cpu_arch=cortex_a9
- march=arm-vexpress-a9
- qemu=qemu-system-arm
- qemu_machine=vexpress-a9
- suffix=${cpu_arch}_hard_eabihf_arm
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -cpu cortex-a9 -net user -net nic,model=lan9118 -dtb ${dtbdir}/vexpress-v2p-ca9.dtb"
- ;;
- armv7-thumb2)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_INSTRUCTION_SET=thumb ADK_TARGET_FS=initramfspiggyback ADK_TARGET_FLOAT=soft ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9"
- cpu_arch=cortex_a9
- march=arm-vexpress-a9
- qemu=qemu-system-arm
- qemu_machine=vexpress-a9
- suffix=${cpu_arch}_soft_eabi_thumb
- dtbdir=openadk/firmware/qemu-${march}_${lib}_${suffix}
- qemu_args="${qemu_args} -cpu cortex-a9 -net user -net nic,model=lan9118 -dtb ${dtbdir}/vexpress-v2p-ca9.dtb"
- ;;
- armv8)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9 ADK_TARGET_CPU=cortex-a53"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9 ADK_TARGET_CPU=cortex-a53"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9 ADK_TARGET_CPU=cortex-a53"
- cpu_arch=cortex_a53
- suffix=${cpu_arch}_hard_eabihf_arm
- ;;
- armv8-thumb2)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_INSTRUCTION_SET=thumb ADK_TARGET_FS=initramfspiggyback ADK_TARGET_FLOAT=soft ADK_TARGET_SYSTEM=qemu-arm-vexpress-a9 ADK_TARGET_CPU=cortex-a53"
- cpu_arch=cortex_a53
- suffix=${cpu_arch}_soft_eabi_thumb
- ;;
- armeb)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=generic-arm ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=generic-arm ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arm ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=generic-arm ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- ;;
- arcv2)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=archs"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=archs"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=archs"
- qemu=qemu-system-arc
- qemu_machine=virt
- qemu_args="-nographic -monitor none -serial stdio -cpu archs -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- cpu_arch=archs
- march=arc
- suffix=${cpu_arch}
- ;;
- arc32)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=arc32"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=arc32"
- qemu=qemu-system-arc
- qemu_machine=virt,ram_start=0
- qemu_args="-nographic -monitor none -serial stdio -cpu hs5x -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- march=arc
- ;;
- arc64)
- allowed_libc="glibc"
- runtime_test="glibc"
- allowed_tests="toolchain boot libc ltp mksh native"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=arc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-arc ADK_TARGET_ENDIAN=little ADK_TARGET_CPU=arc64"
- qemu=qemu-system-arc64
- qemu_machine=virt,ram_start=0
- qemu_args="-nographic -monitor none -serial stdio -cpu hs6x -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- march=arc
- ;;
- avr32)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=avr32 ADK_TARGET_SYSTEM=generic-avr32"
- ;;
- bf512-flat)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=bfin ADK_TARGET_SYSTEM=sim-bfin ADK_TARGET_BINFMT=flat"
- emulator=gdb
- model=bf512
- march=bfin
- binfmt=flat
- gdbcmd="bfin-openadk-uclinux-uclibc-run --env operating --model bf512"
- suffix=bf512_flat
- ;;
- bf512-fdpic)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=bfin ADK_TARGET_SYSTEM=sim-bfin ADK_TARGET_BINFMT=fdpic"
- emulator=gdb
- model=bf512
- march=bfin
- binfmt=fdpic
- gdbcmd="bfin-openadk-linux-uclibc-run --env operating --model bf512"
- suffix=bf512_fdpic
- ;;
- bf532-flat)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=bfin ADK_TARGET_CPU=bf532 ADK_TARGET_SYSTEM=sim-bfin ADK_TARGET_BINFMT=flat"
- emulator=gdb
- model=bf532
- march=bfin
- binfmt=flat
- gdbcmd="bfin-openadk-uclinux-uclibc-run --env operating --model bf532"
- suffix=bf532_flat
- ;;
- bf532-fdpic)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=bfin ADK_TARGET_CPU=bf532 ADK_TARGET_SYSTEM=sim-bfin ADK_TARGET_BINFMT=fdpic"
- emulator=gdb
- model=bf532
- march=bfin
- binfmt=fdpic
- gdbcmd="bfin-openadk-linux-uclibc-run --env operating --model bf532"
- suffix=bf532_fdpic
- ;;
- bfin)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=bfin"
- ;;
- c6x)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=c6x ADK_TARGET_SYSTEM=generic-c6x ADK_TARGET_ENDIAN=little"
- ;;
- crisv10)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=cris ADK_TARGET_SYSTEM=generic-cris ADK_TARGET_CPU=crisv10"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=cris ADK_TARGET_CPU=crisv10"
- ;;
- crisv32)
- allowed_libc="uclibc-ng newlib"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc ltp"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=cris ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-cris"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=cris ADK_TARGET_CPU=crisv32"
- cpu_arch=crisv32
- march=cris
- qemu=qemu-system-${march}
- qemu_machine=axis-dev88
- suffix=${cpu_arch}
- ;;
- csky-ck807)
- allowed_libc="uclibc-ng glibc newlib"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=csky ADK_TARGET_SYSTEM=qemu-csky ADK_TARGET_CPU=ck807 ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=csky ADK_TARGET_SYSTEM=qemu-csky ADK_TARGET_CPU=ck807 ADK_TARGET_ENDIAN=little"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=csky ADK_TARGET_CPU=ck807 ADK_TARGET_ENDIAN=little"
- march=csky
- qemu=qemu-system-cskyv2
- qemu_args="-nographic -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- qemu_machine=virt
- suffix=soft
- skiplt=csky-ck807
- ;;
- csky-ck810)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot mksh native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=csky ADK_TARGET_SYSTEM=qemu-csky ADK_TARGET_CPU=ck810 ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=csky ADK_TARGET_SYSTEM=qemu-csky ADK_TARGET_CPU=ck810 ADK_TARGET_ENDIAN=little"
- march=csky
- qemu=qemu-system-cskyv2
- qemu_args="-nographic -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- qemu_machine=virt
- suffix=soft
- skiplt=csky-ck810
- ;;
- epiphany)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=epiphany"
- ;;
- ft32)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=ft32"
- ;;
- frv)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=frv ADK_TARGET_SYSTEM=generic-frv"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=frv"
- ;;
- ia64)
- allowed_libc="uclibc-ng glibc newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=ia64 ADK_TARGET_SYSTEM=generic-ia64"
- default_glibc="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=ia64 ADK_TARGET_SYSTEM=generic-ia64"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=ia64"
- ;;
- kvx)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=kvx ADK_TARGET_SYSTEM=qemu-kvx"
- qemu=qemu-system-kvx
- qemu_args="-nographic"
- qemu_machine=mppa-coolidge
- skiplt=kvx
- ;;
- h8300-h8300h)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=h8300 ADK_TARGET_CPU=h8300h ADK_TARGET_SYSTEM=sim-h8300"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=h8300 ADK_TARGET_CPU=h8300h"
- ;;
- h8300-h8s)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=h8300 ADK_TARGET_CPU=h8s ADK_TARGET_SYSTEM=sim-h8300"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=h8300 ADK_TARGET_CPU=h8s"
- ;;
- hppa)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=hppa ADK_TARGET_SYSTEM=qemu-hppa"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=hppa ADK_TARGET_SYSTEM=qemu-hppa"
- qemu=qemu-system-hppa
- qemu_args="-nographic -device e1000,netdev=adk0 -netdev user,id=adk0"
- qemu_machine=B160L
- ;;
- lm32)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=lm32 ADK_TARGET_SYSTEM=qemu-lm32"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=lm32"
- skipcxx=lm32
- ;;
- loongarch)
- allowed_libc="glibc"
- runtime_test="glibc"
- allowed_tests="toolchain"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=loongarch ADK_TARGET_SYSTEM=qemu-loongarch"
- qemu=qemu-system-loongarch64
- qemu_machine=virt
- qemu_args='-nographic -bios target/loongarch/QEMU_EFI.fd -append console=ttyS0,115200'
- ;;
- m32r)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=m32r"
- ;;
- m68k)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=m68k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-m68k-q800 ADK_TARGET_CPU=68040"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=m68k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-m68k-q800 ADK_TARGET_CPU=68040"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=m68k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-m68k-q800 ADK_TARGET_CPU=68040"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=m68k ADK_TARGET_CPU=68040"
- cpu_arch=68040
- march=m68k-q800
- qemu=qemu-system-m68k
- qemu_args="-nographic"
- qemu_machine=q800
- suffix=${cpu_arch}
- ;;
- m68k-nommu-flat)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=m68k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-m68k-mcf5208 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=flat ADK_TARGET_THREADS=lt"
- cpu_arch=cf5208
- march=m68k-mcf5208
- qemu=qemu-system-m68k
- qemu_args="-nographic -m 256"
- qemu_machine=mcf5208evb
- suffix=${cpu_arch}_flat_nommu
- ;;
- m68k-nommu-elf)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=m68k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-m68k-mcf5208 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=elf ADK_TARGET_THREADS=none"
- cpu_arch=cf5208
- march=m68k-mcf5208
- qemu=qemu-system-m68k
- qemu_args="-nographic -m 256"
- qemu_machine=mcf5208evb
- suffix=${cpu_arch}_elf_nommu
- ;;
- metag)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=metag ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-metag"
- cpu_arch=metag
- qemu=qemu-system-meta
- qemu_args="-nographic -display none -device da,exit_threads=1 -chardev stdio,id=chan1 -chardev pty,id=chan2"
- qemu_machine=01sp
- skiplt=metag
- skipstatic=metag
- ;;
- microblazeel)
- 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=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=little"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=little"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=microblaze ADK_TARGET_ENDIAN=little"
- cpu_arch=microblaze
- endian=el
- march=microblaze-s3adsp1800
- qemu=qemu-system-microblazeel
- qemu_machine=petalogix-s3adsp1800
- suffix=${cpu_arch}${endian}
- skipssp=microblazeel
- ;;
- microblazebe)
- 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=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=microblaze ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-microblaze-s3adsp1800 ADK_TARGET_ENDIAN=big"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=microblaze ADK_TARGET_ENDIAN=big"
- cpu_arch=microblaze
- march=microblaze-s3adsp1800
- qemu=qemu-system-microblaze
- qemu_machine=petalogix-s3adsp1800
- suffix=${cpu_arch}
- skipssp=microblazebe
- ;;
- mips32)
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=mips ADK_TARGET_ENDIAN=big"
- cpu_arch=mips32
- march=mips
- qemu=qemu-system-mips
- qemu_machine=malta
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_hard
- ;;
- mips32r6)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- cpu_arch=mips32r6
- march=mips
- qemu=qemu-system-mips
- qemu_machine=malta
- qemu_args="${qemu_args} -cpu mips32r6-generic -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_hard
- ;;
- mips32sf)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=big ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- cpu_arch=mips32
- march=mips
- qemu=qemu-system-mips
- qemu_machine=malta
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_soft
- ;;
- mips32el)
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=mips ADK_TARGET_ENDIAN=little"
- cpu_arch=mips32
- endian=el
- march=mips
- qemu=qemu-system-mipsel
- qemu_machine=malta
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_hard
- ;;
- mips32r6el)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=hard ADK_TARGET_CPU=mips32r6"
- cpu_arch=mips32r6
- march=mips
- qemu=qemu-system-mipsel
- qemu_machine=malta
- qemu_args="${qemu_args} -cpu mips32r6-generic -device e1000,netdev=adk0 -netdev user,id=adk0"
- endian=el
- suffix=${cpu_arch}${endian}_hard
- ;;
- mips32elsf)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips ADK_TARGET_ENDIAN=little ADK_TARGET_FLOAT=soft ADK_TARGET_CPU=mips32"
- cpu_arch=mips32
- endian=el
- march=mips
- qemu=qemu-system-mipsel
- qemu_machine=malta
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_soft
- ;;
- mips64)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=o32 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=o32 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_o32
- ;;
- mips64r6n32)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64r6"
- cpu_arch=mips64r6
- march=mips64
- qemu=qemu-system-${march}
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -cpu I6400 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_n32
- ;;
- mips64r6n64)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64r6"
- cpu_arch=mips64r6
- march=mips64
- qemu=qemu-system-${march}
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -cpu I6400 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_n64
- ;;
- mips64n32)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- march=mips64
- qemu=qemu-system-${cpu_arch}
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_n32
- ;;
- mips64n64)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=big ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- march=mips64
- qemu=qemu-system-${cpu_arch}
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}_n64
- ;;
- mips64el)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=o32 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=o32 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- march=mips64
- endian=el
- qemu=qemu-system-mips64el
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_o32
- ;;
- mips64eln32)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- march=mips64
- endian=el
- qemu=qemu-system-mips64el
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_n32
- ;;
- mips64eln64)
- allowed_libc="uclibc-ng musl glibc"
- 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=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64"
- cpu_arch=mips64
- march=mips64
- endian=el
- qemu=qemu-system-mips64el
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_n64
- ;;
- mips64r6eln32)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n32 ADK_TARGET_CPU=mips64r6"
- cpu_arch=mips64r6
- march=mips64
- endian=el
- qemu=qemu-system-mips64el
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -cpu I6400 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_n32
- ;;
- mips64r6eln64)
- allowed_libc="uclibc-ng glibc"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64r6"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=mips64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-mips64 ADK_TARGET_ENDIAN=little ADK_TARGET_ABI=n64 ADK_TARGET_CPU=mips64r6"
- cpu_arch=mips64r6
- march=mips64
- endian=el
- qemu=qemu-system-mips64el
- qemu_machine=malta
- qemu_args="${qemu_args} -m 256 -cpu I6400 -device e1000,netdev=adk0 -netdev user,id=adk0"
- suffix=${cpu_arch}${endian}_n64
- ;;
- mn10300)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=mn10300"
- ;;
- moxie)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=moxie"
- ;;
- msp430)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=msp430"
- ;;
- nds32le)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=nds32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=generic-nds32 ADK_TARGET_ENDIAN=little"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=nds32 ADK_TARGET_ENDIAN=little"
- ;;
- nds32be)
- allowed_libc="uclibc-ng newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=nds32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=generic-nds32 ADK_TARGET_ENDIAN=big"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=nds32 ADK_TARGET_ENDIAN=big"
- ;;
- nios2)
- allowed_libc="uclibc-ng glibc newlib"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=nios2 ADK_TARGET_SYSTEM=qemu-nios2"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=nios2 ADK_TARGET_SYSTEM=qemu-nios2"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=nios2"
- qemu_machine=10m50-ghrd
- ;;
- or1k)
- allowed_libc="uclibc-ng musl glibc newlib"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=or1k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-or1k"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=or1k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-or1k"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=or1k ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-or1k"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=or1k"
- qemu_machine=or1k-sim
- ;;
- ppc)
- 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=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-macppc ADK_TARGET_FLOAT=hard ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-macppc ADK_TARGET_FLOAT=hard ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-macppc ADK_TARGET_FLOAT=hard ADK_TARGET_ENDIAN=big"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=ppc ADK_TARGET_ENDIAN=big"
- cpu_arch=ppc
- march=ppc-macppc
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- qemu_machine=mac99
- suffix=hard
- noappend=1
- ;;
- ppcsf)
- 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=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-bamboo ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-bamboo ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc-bamboo ADK_TARGET_FLOAT=soft ADK_TARGET_ENDIAN=big"
- cpu_arch=ppc
- march=ppc-bamboo
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -device e1000,netdev=adk0 -netdev user,id=adk0"
- qemu_machine=bamboo
- suffix=soft
- ;;
- ppc64)
- allowed_libc="musl glibc"
- runtime_test="musl glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc64 ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc64 ADK_TARGET_ENDIAN=big"
- cpu_arch=ppc64
- qemu=qemu-system-${cpu_arch}
- qemu_machine=pseries
- suffix=${cpu_arch}
- ;;
- ppc64le)
- allowed_libc="musl glibc"
- runtime_test="musl glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc64 ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=ppc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-ppc64 ADK_TARGET_ENDIAN=little"
- cpu_arch=ppc64
- endian=le
- march=ppc64
- qemu=qemu-system-ppc64
- qemu_machine=pseries
- suffix=${cpu_arch}
- ;;
- riscv32)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv32"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv32"
- cpu_arch=riscv32
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- qemu_machine=virt
- ;;
- riscv32-nommu-flat)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv32 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=flat"
- cpu_arch=riscv32
- march=riscv32
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -bios none -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -cpu rv32,mmu=off"
- qemu_machine=virt
- suffix=flat_nommu
- ;;
- riscv32-nommu-elf)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv32 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv32 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=elf"
- cpu_arch=riscv32
- march=riscv32
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -bios none -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -cpu rv32,mmu=off"
- qemu_machine=virt
- suffix=elf_nommu
- ;;
- 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"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=riscv64"
- cpu_arch=riscv64
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0"
- qemu_machine=virt
- ;;
- riscv64-nommu-flat)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv64 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=flat"
- cpu_arch=riscv64
- march=riscv64
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -bios none -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -cpu rv64,mmu=off"
- qemu_machine=virt
- suffix=flat_nommu
- ;;
- riscv64-nommu-elf)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=riscv64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-riscv64 ADK_TARGET_MMU=no ADK_TARGET_BINFMT=elf"
- cpu_arch=riscv64
- march=riscv64
- qemu=qemu-system-${cpu_arch}
- qemu_args="${qemu_args} -bios none -m 512 -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -cpu rv64,mmu=off"
- qemu_machine=virt
- suffix=elf_nommu
- ;;
- rx)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=rx"
- ;;
- s390)
- allowed_libc="musl glibc"
- runtime_test="musl glibc"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=s390 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-s390"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=s390 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-s390"
- cpu_arch=s390x
- qemu=qemu-system-${cpu_arch}
- qemu_machine=s390-ccw-virtio
- ;;
- sh)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=sh ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no"
- ;;
- sh2)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh2 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=little"
- cpu_arch=sh2
- ;;
- sh2eb)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh2 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=big"
- cpu_arch=sh2
- ;;
- sh3)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh3 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh3 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=little"
- cpu_arch=sh3
- ;;
- sh3eb)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh3 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_SYSTEM=generic-sh ADK_TARGET_CPU=sh3 ADK_TARGET_MMU=no ADK_TARGET_ENDIAN=big"
- cpu_arch=sh3
- ;;
- sh4)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=little"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=little"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=little"
- cpu_arch=sh4
- march=sh
- qemu=qemu-system-sh4
- qemu_machine=r2d
- qemu_args="${qemu_args} -monitor null -serial null -serial stdio"
- suffix=${cpu_arch}
- ;;
- sh4eb)
- allowed_libc="uclibc-ng musl glibc"
- runtime_test="uclibc-ng musl glibc"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=big"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=big"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sh ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sh ADK_TARGET_ENDIAN=big"
- cpu_arch=sh4eb
- march=sh
- qemu=qemu-system-sh4eb
- qemu_machine=r2d
- qemu_args="${qemu_args} -monitor null -serial null -serial stdio -append noiotrap"
- suffix=${cpu_arch}
- ;;
- sparc)
- allowed_libc="uclibc-ng glibc newlib"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sparc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sparc"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sparc ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sparc"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=sparc"
- cpu_arch=v8
- qemu=qemu-system-sparc
- qemu_machine=SS-10
- qemu_args="${qemu_args} -m 256"
- suffix=${cpu_arch}
- ;;
- sparc-leon3)
- allowed_libc="uclibc-ng"
- runtime_test=""
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=sparc ADK_TARGET_CPU=leon3 ADK_TARGET_SYSTEM=generic-sparc"
- cpu_arch=leon
- suffix=${cpu_arch}
- ;;
- sparc64)
- allowed_libc="uclibc-ng glibc newlib"
- runtime_test="uclibc-ng glibc"
- allowed_tests="toolchain boot libc"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sparc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sparc64"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=sparc64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-sparc64"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=sparc64"
- cpu_arch=v9
- qemu=qemu-system-sparc64
- qemu_machine=sun4u
- qemu_args="${qemu_args} -m 512 -net nic,model=e1000 -net user"
- suffix=${cpu_arch}
- ;;
- tilegx)
- allowed_libc="uclibc-ng glibc"
- runtime_test=""
- allowed_tests="toolchain"
- default_glibc="ADK_APPLIANCE=toolchain ADK_TARGET_OS=$os ADK_TARGET_ARCH=tile ADK_TARGET_CPU=tilegx ADK_TARGET_SYSTEM=generic-tile"
- ;;
- v850)
- allowed_libc="newlib"
- runtime_test=""
- allowed_tests="toolchain"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=v850"
- ;;
- x86)
- 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=x86 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=x86"
- cpu_arch=i686
- qemu=qemu-system-i386
- qemu_machine=pc
- qemu_args="${qemu_args} -m 256"
- ;;
- x86_64)
- 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=x86_64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86_64"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86_64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86_64"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86_64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86_64"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=x86_64"
- cpu_arch=x86_64
- qemu_machine=pc
- qemu_args="${qemu_args} -m 256"
- libdir=lib64
- ;;
- x86_64_x32)
- allowed_libc="musl glibc"
- runtime_test="musl glibc"
- allowed_tests="toolchain"
- default_glibc="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86_64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86_64 ADK_TARGET_ABI=x32"
- default_musl="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=x86_64 ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-x86_64 ADK_TARGET_ABI=x32"
- cpu_arch=x86_64
- march=x86_64
- qemu=qemu-system-${cpu_arch}
- qemu_machine=pc
- libdir=libx32
- suffix=x32
- ;;
- xtensa)
- allowed_libc="newlib uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc mksh ltp native"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=xtensa ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-xtensa ADK_TARGET_CPU=dc233c ADK_TARGET_ENDIAN=little"
- default_newlib="ADK_APPLIANCE=toolchain ADK_TARGET_OS=baremetal ADK_TARGET_ARCH=xtensa"
- cpu_arch=dc233c
- qemu=qemu-system-xtensa
- qemu_machine=kc705
- qemu_args="${qemu_args} -cpu dc233c -m 256"
- suffix=${cpu_arch}_windowed
- ;;
- xtensabe)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=xtensa ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-xtensa ADK_TARGET_CPU=kc705_be ADK_TARGET_ENDIAN=big"
- cpu_arch=dc233c
- qemu=qemu-system-xtensa
- qemu_machine=kc705
- qemu_args="${qemu_args} -cpu dc233c"
- suffix=${cpu_arch}
- ;;
- xtensa-nommu)
- allowed_libc="uclibc-ng"
- runtime_test="uclibc-ng"
- allowed_tests="toolchain boot libc"
- default_uclibc_ng="ADK_APPLIANCE=test ADK_TARGET_OS=$os ADK_TARGET_ARCH=xtensa ADK_TARGET_FS=initramfspiggyback ADK_TARGET_SYSTEM=qemu-xtensa ADK_TARGET_CPU=de212 ADK_TARGET_ENDIAN=little ADK_TARGET_MMU=no"
- cpu_arch=de212
- march=xtensa
- qemu=qemu-system-xtensa
- qemu_machine=kc705-nommu
- qemu_args="${qemu_args} -cpu de212 -m 256"
- suffix=${cpu_arch}_flat_nommu
- ;;
- *)
- echo "architecture ${arch} not supported"; exit 1;;
- esac
- }
- # creating test script to be run on boot
- create_run_sh() {
- test=$1
- file=$2
- type=$3
- if [ "$type" = "netcat" ]; then
- tee="| tee -a /REPORT"
- fi
- cat > $file << EOF
- #!/bin/sh
- uname -a
- mount -o remount,rw /
- if [ -x /usr/sbin/rdate ]; then
- if [ \$ntpserver ]; then
- rdate \$ntpserver
- else
- rdate time.fu-berlin.de
- fi
- fi
- EOF
- if [ "$type" = "netcat" ]; then
- cat >> $file << EOF
- dmesg >> /REPORT
- EOF
- fi
- # boot test
- if [ $test = "boot" ]; then
- cat >> $file << EOF
- if [ -x /usr/bin/size ]; then
- size /bin/busybox $tee
- else
- ls -la /bin/busybox $tee
- fi
- helloworld
- helloworld.static
- if [ -x helloworld-cxx ]; then
- helloworld-cxx
- fi
- if [ -x helloworld-cxx.static ]; then
- helloworld-cxx.static
- fi
- EOF
- if [ $static -eq 0 ]; then
- cat >> $file << EOF
- for i in \$(ls /lib/* 2>/dev/null);do
- if [ -x /usr/bin/size ]; then
- size \$i $tee
- else
- ls -la \$i $tee
- fi
- done
- EOF
- fi
- fi
- # ltp test
- if [ $test = "ltp" ]; then
- cat >> $file << EOF
- /opt/ltp/runltp $tee
- EOF
- fi
- # native test
- if [ $test = "native" ]; then
- cat >> $file << EOF
- echo '#include <stdio.h>\nint main() {\n printf("Hello World");\n return 0; \n}'> /hello.c
- gcc -o /hello /hello.c $tee
- /hello $tee
- if [ \$? -eq 0 ]; then
- echo "\nsuccess"
- else
- echo "\nfailed"
- fi
- EOF
- fi
- # mksh test
- if [ $test = "mksh" ]; then
- cat >> $file << EOF
- tty=\$(cat /proc/consoles |cut -f 1 -d " ")
- mksh -T !/dev/\$tty -c '/opt/mksh/test.sh' $tee
- EOF
- fi
- # libc test
- if [ $test = "libc" ]; then
- cat >> $file << EOF
- cd /usr/lib/uclibc-ng-test/test
- sh ./uclibcng-testrunner.sh $tee
- EOF
- fi
- # info
- cat >> $file <<EOF
- if [ -f /etc/.adkgithash ]; then
- echo "OpenADK git version:"
- cat /etc/.adkgithash
- fi
- if [ -f /etc/.adkcompiler ]; then
- echo "Compiler used:"
- cat /etc/.adkcompiler
- fi
- if [ -f /etc/.adklinker ]; then
- echo "Linker used:"
- cat /etc/.adklinker
- fi
- EOF
- if [ "$type" = "netcat" ]; then
- cat >> $file << EOF
- echo quit|nc $buildserver 9999
- EOF
- fi
- if [ "$type" = "quit" ]; then
- cat >> $file << EOF
- exit
- EOF
- fi
- chmod u+x $file
- }
- runtest() {
- lib=$1
- arch=$2
- test=$3
- if [ $ntp ]; then
- qemu_append="-append ntpserver=$ntp"
- fi
- if [ $shell -eq 1 ]; then
- qemu_append="-append shell"
- fi
- qemu=qemu-system-${arch}
- march=${arch}
- get_arch_info $arch $lib
- case $emulator in
- qemu)
- echo "Using QEMU as emulator"
- if ! which $qemu >/dev/null; then
- echo "Checking if $qemu is installed... failed"
- exit 1
- fi
- qemuver=$(${qemu} -version|awk '{ print $4 }'|head -1)
- if [ "$arch" != "metag" ]; then
- if [ $(echo $qemuver |sed -e "s#\.##g" -e "s#,##") -lt 240 ]; then
- echo "Your qemu version is too old. Please update to 2.4 or greater"
- exit 1
- fi
- fi
- ;;
- gdb)
- echo "Using GDB as simulator"
- ;;
- *)
- echo "emulator/simulator not supported"
- exit 1
- ;;
- esac
- echo "Starting test for $lib and $arch"
- echo "Using extra directory for test image creation"
- root=openadk/extra
- rm -rf openadk/extra 2>/dev/null
- mkdir openadk/extra 2>/dev/null
- if [ ! -z $suffix ]; then
- kernel=openadk/firmware/${emulator}-${march}_${lib}_${suffix}/${emulator}-${march}-initramfspiggyback-kernel
- else
- kernel=openadk/firmware/${emulator}-${march}_${lib}/${emulator}-${march}-initramfspiggyback-kernel
- fi
- create_run_sh $test ${root}/run.sh quit
- (cd openadk && make v)
- # qemu-ppc overwrites existing commandline
- if [ $noappend -eq 0 ]; then
- qemu_args="$qemu_args ${qemu_append}"
- fi
- report=REPORT.${arch}.${test}.${libver}${rsuffix}
- echo "Now running the test ${test} in ${emulator} for architecture ${arch} and ${lib}"
- case $emulator in
- qemu)
- echo "${qemu} -M ${qemu_machine} ${qemu_args} -kernel ${kernel} -qmp tcp:127.0.0.1:4444,server,nowait -no-reboot"
- ${qemu} -M ${qemu_machine} ${qemu_args} -kernel ${kernel} -qmp tcp:127.0.0.1:4444,server,nowait -no-reboot | tee $report
- ;;
- gdb)
- echo "$emulator ${arch} ${kernel}"
- ./openadk/toolchain_${emulator}-${march}_${lib}_${model}_${binfmt}/usr/bin/${gdbcmd} ${kernel}
- ;;
- esac
- if [ $? -eq 0 ]; then
- echo "Test ${test} for ${arch} finished. See $report"
- else
- echo "Test ${test} failed for ${arch} with ${lib} ${libver}."
- fi
- }
- build() {
- lib=$1
- arch=$2
- test=$3
- system=$4
- rootfs=$5
- DEFAULT=
- cd openadk
- if [[ $targetmode ]]; then
- DEFAULT="ADK_APPLIANCE=test ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=$system ADK_TARGET_FS=$rootfs"
- else
- get_arch_info $arch $lib
- fi
- if [ $verbose -eq 1 ]; then
- DEFAULT="$DEFAULT ADK_VERBOSE=1"
- fi
- # build defaults for different tests
- if [ $test = "toolchain" ]; then
- DEFAULT="$DEFAULT ADK_TEST_TOOLCHAIN=y"
- fi
- if [ $test = "boot" ]; then
- DEFAULT="$DEFAULT ADK_TEST_BASE=y"
- fi
- if [ $test = "ltp" ]; then
- DEFAULT="$DEFAULT ADK_TEST_LTP=y"
- fi
- if [ $test = "mksh" ]; then
- DEFAULT="$DEFAULT ADK_TEST_MKSH=y"
- REBUILD=.rebuild.mksh
- fi
- if [ $test = "libc" ]; then
- DEFAULT="$DEFAULT ADK_TEST_UCLIBC_NG_TEST=y"
- fi
- if [ $test = "native" ]; then
- case $lib in
- uclibc-ng)
- DEFAULT="$DEFAULT ADK_TEST_UCLIBC_NG_NATIVE=y"
- ;;
- musl)
- DEFAULT="$DEFAULT ADK_TEST_MUSL_NATIVE=y"
- ;;
- glibc)
- DEFAULT="$DEFAULT ADK_TEST_GLIBC_NATIVE=y"
- ;;
- esac
- fi
- # build defaults for different C library
- DEFAULT="$DEFAULT ADK_TARGET_LIBC=$lib"
- case $lib in
- uclibc-ng)
- DEFAULT="$DEFAULT $default_uclibc_ng"
- ;;
- musl)
- DEFAULT="$DEFAULT $default_musl"
- ;;
- glibc)
- DEFAULT="$DEFAULT $default_glibc"
- ;;
- newlib)
- DEFAULT="$DEFAULT $default_newlib"
- ;;
- esac
- # use special C library version
- if [[ $libcversion ]]; then
- DEFAULT="$DEFAULT ADK_TARGET_LIBC_VERSION=$libcversion"
- fi
- # use special Linux kernel version
- if [[ $kernelversion ]]; then
- DEFAULT="$DEFAULT ADK_TARGET_KERNEL_VERSION=$kernelversion"
- fi
- if [[ $binutilsversion ]]; then
- DEFAULT="$DEFAULT ADK_TOOLCHAIN_BINUTILS_VERSION=$binutilsversion"
- fi
- if [[ $gccversion ]]; then
- DEFAULT="$DEFAULT ADK_TOOLCHAIN_GCC_VERSION=$gccversion"
- fi
- if [[ $gdbversion ]]; then
- DEFAULT="$DEFAULT ADK_TOOLCHAIN_GDB_VERSION=$gdbversion"
- fi
- rm .config* .defconfig 2>/dev/null
- echo "Using following defaults: $DEFAULT"
- make $DEFAULT defconfig
- if [ $create -eq 1 ]; then
- printf "ADK_CREATE_TOOLCHAIN_ARCHIVE=y\n" >> .config
- fi
- if [ $static -eq 1 ]; then
- printf "ADK_TARGET_USE_STATIC_LIBS_ONLY=y\n" >> .config
- fi
- if [ $cxx -eq 1 ]; then
- if [ "$arch" = "$skipcxx" -o "$lib" = "newlib" ]; then
- echo "Skipping $skipcxx"
- else
- printf "ADK_TOOLCHAIN_WITH_CXX=y\n" >> .config
- printf "ADK_COMPILE_LIBSTDCXX=y\n" >> .config
- printf "ADK_PACKAGE_LIBSTDCXX=y\n" >> .config
- fi
- fi
- if [ $ssp -eq 1 ]; then
- printf "ADK_TARGET_USE_SSP=y\n" >> .config
- fi
- if [ $debug -eq 1 ]; then
- printf "ADK_DEBUG=y\n" >> .config
- fi
- if [ ! -z $threads ]; then
- if [ $threads = "none" ]; then
- printf "ADK_TARGET_WITHOUT_THREADS=y\n" >> .config
- fi
- if [ $threads = "lt" ]; then
- printf "ADK_TARGET_WITH_LT=y\n" >> .config
- fi
- if [ $threads = "nptl" ]; then
- printf "ADK_TARGET_WITH_NPTL=y\n" >> .config
- fi
- fi
- for pkg in $packages; do
- p=$(echo $pkg|tr '[:lower:]' '[:upper:]'|tr - _);printf "ADK_COMPILE_$p=y\nADK_PACKAGE_$p=y\n" >> .config
- done
- # refresh after any changes to config
- yes|make oldconfig >/dev/null
- if [ $clean -eq 1 ]; then
- echo "cleaning openadk build directory"
- make cleansystem
- fi
- if [ ! -z $REBUILD ]; then
- touch $REBUILD
- fi
- make $DEFAULT all
- if [ $? -ne 0 ];then
- echo "build failed"
- exit 1
- fi
- cd ..
- }
- for lib in ${libc}; do
- case $lib in
- uclibc-ng)
- archlist=$arch_list_uclibcng
- if [[ $libcversion ]]; then
- version=$libcversion
- else
- version=1.0.50
- fi
- libver=uClibc-ng-${version}
- libdir=uClibc-ng
- ;;
- glibc)
- archlist=$arch_list_glibc
- if [[ $libcversion ]]; then
- version=$libcversion
- else
- version=2.40
- fi
- libver=glibc-${version}
- libdir=glibc
- ;;
- musl)
- archlist=$arch_list_musl
- if [[ $libcversion ]]; then
- version=$libcversion
- else
- version=1.2.5
- fi
- libver=musl-${version}
- libdir=musl
- ;;
- newlib)
- archlist=$arch_list_newlib
- if [[ $libcversion ]]; then
- version=$libcversion
- else
- version=4.4.0
- fi
- libver=newlib-${version}
- libdir=newlib
- ;;
- *)
- echo "$lib not supported"
- exit 1
- ;;
- esac
- if [ ! -z $archs ]; then
- archlist="$archs"
- fi
- # libc source used?
- if [ ! -z $libcsource ]; then
- if [ ! -d $libcsource ]; then
- echo "Not a directory."
- exit 1
- fi
- if [ ! -f openadk/dl/${libver}.tar.gz ]; then
- usrc=$(mktemp -d /tmp/XXXX)
- echo "Creating C library source tarball openadk/dl/${libver}.tar.gz"
- cp -a $libcsource $usrc/$libver
- mkdir -p $topdir/openadk/dl 2>/dev/null
- rm $topdir/openadk/dl/${libver}.tar.gz 2>/dev/null
- (cd $usrc && tar czf $topdir/openadk/dl/${libver}.tar.gz ${libver} && rm -rf $usrc)
- touch $topdir/openadk/dl/${libver}.tar.gz.nohash
- # we need to clean system, when external source is used
- if [ $noclean -eq 0 ]; then
- clean=1
- fi
- else
- echo "Libc ${libver} tarball already exists, skipping creation"
- fi
- fi
- # binutils source used?
- if [ ! -z $binutilssource ]; then
- if [ ! -d $binutilssource ]; then
- echo "Not a directory."
- exit 1
- fi
- if [ ! -f openadk/dl/binutils-git.tar.gz ]; then
- usrc=$(mktemp -d /tmp/XXXX)
- echo "Creating binutils source tarball openadk/dl/binutils-git.tar.gz"
- (cd $binutilssource && ./src-release.sh binutils)
- tar xf $binutilssource/binutils-*.tar -C $usrc
- (cd $usrc && mv binutils-* binutils-git)
- mkdir -p $topdir/openadk/dl 2>/dev/null
- rm $topdir/openadk/dl/binutils-git.tar.gz 2>/dev/null
- (cd $usrc && tar czf $topdir/openadk/dl/binutils-git.tar.gz binutils-git && rm -rf $usrc)
- touch $topdir/openadk/dl/binutils-git.tar.gz.nohash
- # we need to clean system, when external source is used
- if [ $noclean -eq 0 ]; then
- clean=1
- fi
- else
- echo "Binutils tarball already exists, skipping creation"
- fi
- fi
- # gcc source used?
- if [ ! -z $gccsource ]; then
- if [ ! -d $gccsource ]; then
- echo "Not a directory."
- exit 1
- fi
- if [ ! -f openadk/dl/gcc-git.tar.gz ]; then
- usrc=$(mktemp -d /tmp/XXXX)
- echo "Creating gcc source tarball openadk/dl/gcc-git.tar.gz"
- cp -a $gccsource $usrc/gcc-git
- mkdir -p $topdir/openadk/dl 2>/dev/null
- rm $topdir/openadk/dl/gcc-git.tar.gz 2>/dev/null
- (cd $usrc && tar czf $topdir/openadk/dl/gcc-git.tar.gz gcc-git && rm -rf $usrc)
- touch $topdir/openadk/dl/gcc-git.tar.gz.nohash
- # we need to clean system, when external source is used
- if [ $noclean -eq 0 ]; then
- clean=1
- fi
- else
- echo "GCC tarball already exists, skipping creation"
- fi
- fi
- # gdb source used?
- if [ ! -z $gdbsource ]; then
- if [ ! -d $gdbsource ]; then
- echo "Not a directory."
- exit 1
- fi
- if [ ! -f openadk/dl/gdb-git.tar.gz ]; then
- usrc=$(mktemp -d /tmp/XXXX)
- echo "Creating gdb source tarball openadk/dl/gdb-git.tar.gz"
- cp -a $gdbsource $usrc/gdb-git
- mkdir -p $topdir/openadk/dl 2>/dev/null
- rm $topdir/openadk/dl/gdb-git.tar.gz 2>/dev/null
- (cd $usrc && tar czf $topdir/openadk/dl/gdb-git.tar.gz gdb-git && rm -rf $usrc)
- touch $topdir/openadk/dl/gdb-git.tar.gz.nohash
- # we need to clean system, when external source is used
- if [ $noclean -eq 0 ]; then
- clean=1
- fi
- else
- echo "GDB tarball already exists, skipping creation"
- fi
- fi
- # Linux kernel source used?
- if [ ! -z $kernelsource ]; then
- if [ ! -d $kernelsource ]; then
- echo "Not a directory."
- exit 1
- fi
- if [ ! -f openadk/dl/linux-git.tar.gz ]; then
- usrc=$(mktemp -d /tmp/XXXX)
- echo "Creating Linux kernel source tarball openadk/dl/linux-git.tar.gz"
- cp -a $kernelsource $usrc/linux-git
- mkdir -p $topdir/openadk/dl 2>/dev/null
- rm $topdir/openadk/dl/linux-git.tar.gz 2>/dev/null
- (cd $usrc && tar czf $topdir/openadk/dl/linux-git.tar.gz linux-git && rm -rf $usrc)
- touch $topdir/openadk/dl/linux-git.tar.gz.nohash
- # we need to clean system, when external source is used
- if [ $noclean -eq 0 ]; then
- clean=1
- fi
- else
- echo "Tarball already exists, skipping creation"
- fi
- fi
- # start with a clean dir
- if [ $cleandir -eq 1 ]; then
- echo "completely cleaning openadk build directory"
- (cd openadk && make cleandir)
- fi
- if [[ $targetmode ]]; then
- create_run_sh $test run.sh netcat
- while read -u3 line; do
- target_host=$(echo $line|cut -f 1 -d ,)
- target_ip=$(echo $line|cut -f 2 -d ,)
- target_arch=$(echo $line|cut -f 3 -d ,)
- target_system=$(echo $line|cut -f 4 -d ,)
- target_suffix=$(echo $line|cut -f 5 -d ,)
- target_rootfs=$(echo $line|cut -f 6 -d ,)
- target_powerid=$(echo $line|cut -f 7 -d ,)
- echo "Testing target system $target_system ($target_arch) with $target_rootfs on $target_host"
- build $lib $target_arch $test $target_system $target_rootfs
- kernel=openadk/firmware/${target_system}_${lib}_${target_suffix}/${target_system}-${target_rootfs}-kernel
- tarball=openadk/firmware/${target_system}_${lib}_${target_suffix}/${target_system}-${lib}-${target_rootfs}.tar.gz
- scp $kernel root@${bootserver}:/tftpboot/${target_host}
- ssh -n root@${bootserver} "cd /tftpboot; ln -sf ${target_host} vmlinux"
- ssh -n root@${bootserver} "mkdir /nfsroot/${target_host} 2>/dev/null"
- gunzip $tarball | ssh root@${bootserver} "tar -xf - -C /nfsroot/${target_host}"
- scp run.sh root@${bootserver}:/nfsroot/${target_host}
- echo "Powering on target system"
- ssh -n root@${bootserver} "sispmctl -o $target_powerid"
- echo "Waiting for target system to finish"
- nc -l -p 9999
- echo "Test finished. Powering off target system"
- ssh -n root@${bootserver} "sispmctl -f $target_powerid"
- scp root@${bootserver}:/nfsroot/${target_host}/REPORT REPORT.${target_arch}.${target_system}.${test}.${libver}
- ssh -n root@${bootserver} "rm /nfsroot/${target_host}/REPORT"
- done 3< $targets
- else
- for arch in $archlist; do
- get_arch_info $arch $lib
- report=REPORT.${arch}.${test}.${libver}${rsuffix}
- if [ $cont -eq 1 ]; then
- if [ -f $report ]; then
- echo "Skipping already run test $test for $arch and $lib"
- continue
- fi
- fi
- if [ "$arch" = "$skiparchs" ]; then
- echo "Skipping $skiparchs"
- continue
- fi
- if [ "$threads" = "lt" ]; then
- if [ "$arch" = "$skiplt" ]; then
- echo "Skipping $skiplt"
- continue
- fi
- fi
- if [ $static -eq 1 ]; then
- if [ "$arch" = "$skipstatic" ]; then
- echo "Skipping $skipstatic"
- continue
- fi
- fi
- if [ $ssp -eq 1 ]; then
- if [ "$arch" = "$skipssp" ]; then
- echo "Skipping $skipssp"
- continue
- fi
- fi
- if [[ "$allowed_tests" = *${test}* ]]; then
- if [[ "$allowed_libc" = *${lib}* ]]; then
- echo "Compiling for $lib and $arch testing $test"
- build $lib $arch $test
- if [ "$test" != "toolchain" ]; then
- if [[ "$runtime_test" = *${lib}* ]]; then
- runtest $lib $arch $test
- fi
- else
- # fake stamp for continue
- touch $report
- fi
- else
- echo "$lib not available for $arch"
- fi
- else
- echo "$test not available for $arch and $lib"
- fi
- done
- fi
- done
- echo "All tests finished."
- exit 0
|