[meta-zephyr][PATCH 5/6] zephyr-bsp: add support for qemu-cortex-r5


Jon Mason
 

Signed-off-by: Jon Mason <jon.mason@...>
---
.gitlab-ci.yml | 3 +++
ci/qemu-cortex-r5.yml | 10 +++++++++
.../conf/machine/qemu-cortex-r5.conf | 22 +++++++++++++++++++
3 files changed, 35 insertions(+)
create mode 100644 ci/qemu-cortex-r5.yml
create mode 100644 meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1a1aba7..90f5eb6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -83,6 +83,9 @@ qemu-cortex-a53:
qemu-cortex-m3/testimage:
extends: .build

+qemu-cortex-r5:
+ extends: .build
+
qemu-nios2:
extends: .build

diff --git a/ci/qemu-cortex-r5.yml b/ci/qemu-cortex-r5.yml
new file mode 100644
index 0000000..e595bce
--- /dev/null
+++ b/ci/qemu-cortex-r5.yml
@@ -0,0 +1,10 @@
+header:
+ version: 11
+ includes:
+ - ci/base.yml
+
+local_conf_header:
+ nonbuilding_tests: |
+ ZEPHYRTESTS:remove = "common poll sleep queue device"
+
+machine: qemu-cortex-r5
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf
new file mode 100644
index 0000000..29b37d7
--- /dev/null
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf
@@ -0,0 +1,22 @@
+#@TYPE: Machine
+#@NAME: qemu_cortex_r5
+#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_r5
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv7r/tune-cortexr5.inc
+
+# GLIBC will not work with Cortex-R.
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-aarch64"
+QB_MACHINE = "-machine xlnx-zcu102"
+QB_CPU = "-cpu cortex-r5"
+QB_MEM = "-m 64k"
+QB_OPT_APPEND = "-nographic -vga none"
+QB_RNG = ""
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "qemu_cortex_r5"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:qemu-cortex-r5 = "arm"
--
2.17.1