summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-06 14:31:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-06 14:32:50 +0200
commit6af07ed8c1abd8aa2422b7053c5e9dab644c2e10 (patch)
tree8eae32dbf50faa75aee66f49ddf0e93bd73acae1
parentskyeye: Use 180 seconds timeout for all tests (diff)
downloadrtems-testing-6af07ed8c1abd8aa2422b7053c5e9dab644c2e10.tar.bz2
Support arm/xilinx_zynq_a9_qemu BSP
-rwxr-xr-xrtems/bit_rtems2
-rw-r--r--sim-scripts/.gitignore1
-rw-r--r--sim-scripts/Makefile7
-rw-r--r--sim-scripts/xilinx_zynq_a9_qemu.in37
4 files changed, 46 insertions, 1 deletions
diff --git a/rtems/bit_rtems b/rtems/bit_rtems
index 62c1c1f..f14ccd9 100755
--- a/rtems/bit_rtems
+++ b/rtems/bit_rtems
@@ -494,6 +494,7 @@ if [ ${ENABLE_RTEMS_TESTS} = "samples" -o \
if [ ${RUN_RTEMS_TESTS} = yes ] ; then
case ${BSP_TO_TEST} in
realview_pbx_a9_qemu) testable=yes ;; # arm/realview_pbx_a9_qemu
+ xilinx_zynq_a9_qemu) testable=yes ;; # arm/xilinx_zynq_a9_qemu
edb7312) testable=yes ;; # arm/edb7312
rtl22xx) testable=yes ;; # arm/rtl22xx
jmr3904) testable=yes ;; # mips/jmr3904
@@ -537,6 +538,7 @@ if [ ${ENABLE_RTEMS_TESTS} = "samples" -o \
edb7312) runner=edb7312 ;;
gumstix) runner=gumstix ;;
realview_pbx_a9_qemu) runner=realview_pbx_a9_qemu ;;
+ xilinx_zynq_a9_qemu) runner=xilinx_zynq_a9_qemu ;;
rtl22xx) runner=rtl22xx ;;
# SPARC
erc32) runner=erc32 ;;
diff --git a/sim-scripts/.gitignore b/sim-scripts/.gitignore
index 3250810..756c66d 100644
--- a/sim-scripts/.gitignore
+++ b/sim-scripts/.gitignore
@@ -60,3 +60,4 @@ uC5282
usleep
v850sim
v850sim-gdb
+xilinx_zynq_a9_qemu
diff --git a/sim-scripts/Makefile b/sim-scripts/Makefile
index 0e49c3b..58595c2 100644
--- a/sim-scripts/Makefile
+++ b/sim-scripts/Makefile
@@ -5,7 +5,9 @@ SKYEYE_SCRIPTS=ant5206 bf537Stamp-skyeye csb337 csb350 csb360 edb7312 \
ezkit533-skyeye gumstix rtl22xx smdk2410 leon2-skyeye
TSIM_SCRIPTS=erc32 leon2 leon3
-QEMU_SCRIPTS=pc386 qemuppc qemu-gumstix qemu-leon2 qemu-lm32_evr uC5282 lm3s6965 realview_pbx_a9_qemu
+QEMU_SCRIPTS=pc386 qemuppc qemu-gumstix qemu-leon2 qemu-lm32_evr uC5282 \
+ lm3s6965 realview_pbx_a9_qemu xilinx_zynq_a9_qemu
+
OTHER_SCRIPTS=avrtest
GENERATED_SCRIPTS=\
${GDBSIM_SCRIPTS} $(GDBSIM_SCRIPTS:%=%-gdb) \
@@ -52,6 +54,9 @@ lm3s6965: gdb-sim-run.in lm3s6965.in
realview_pbx_a9_qemu: gdb-sim-run.in realview_pbx_a9_qemu.in
./mkrun no ARM arm realview_pbx_a9_qemu
+xilinx_zynq_a9_qemu: gdb-sim-run.in xilinx_zynq_a9_qemu.in
+ ./mkrun no ARM arm xilinx_zynq_a9_qemu
+
### Skyeye Simulator BSPs
ant5206: gdb-sim-run.in gdb-sim.in ant5206.in
./mkrun yes M68K-Coldfire m68k ant5206
diff --git a/sim-scripts/xilinx_zynq_a9_qemu.in b/sim-scripts/xilinx_zynq_a9_qemu.in
new file mode 100644
index 0000000..13b79ba
--- /dev/null
+++ b/sim-scripts/xilinx_zynq_a9_qemu.in
@@ -0,0 +1,37 @@
+#
+# arm/xilix_zynq_a9_qemu Qemu Support
+#
+
+bspUsesGDBSimulator="no"
+# bspGeneratesGDBCommands="yes"
+# bspSupportsGDBServerMode="yes"
+runBSP=NOT_OVERRIDDEN
+if [ ! -r ${runBSP} ] ; then
+ runBSP=qemu-system-arm
+fi
+bspNeedsDos2Unix="yes"
+
+runARGS()
+{
+ if [ ${coverage} = yes ] ; then
+ COVERAGE_ARG="-trace ${1}.cov"
+ fi
+
+ echo "-no-reboot -serial mon:stdio -serial /dev/null -net none -nographic -M xilinx-zynq-a9 -m 256M ${COVERAGE_ARG} -kernel `basename ${1}`"
+}
+
+checkBSPFaults()
+{
+ return 0
+}
+
+bspLimit()
+{
+ testname=$1
+ case ${testname} in
+ *) limit=180 ;;
+ esac
+ echo ${limit}
+}
+
+bspGeneratesDeviceTree="no"