[meta-zephyr][PATCH 4/6] zephyr-bsp: add support for qemu-cortex-a53


Jon Mason
 

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8d22654..1a1aba7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,6 +77,9 @@ intel-x86-64:
nrf52840dk-nrf52840:
extends: .build

+qemu-cortex-a53:
+ extends: .build
+
qemu-cortex-m3/testimage:
extends: .build

diff --git a/ci/qemu-cortex-a53.yml b/ci/qemu-cortex-a53.yml
new file mode 100644
index 0000000..e77da8b
--- /dev/null
+++ b/ci/qemu-cortex-a53.yml
@@ -0,0 +1,6 @@
+header:
+ version: 11
+ includes:
+ - ci/base.yml
+
+machine: qemu-cortex-a53
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
new file mode 100644
index 0000000..b97cde7
--- /dev/null
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
@@ -0,0 +1,19 @@
+#@TYPE: Machine
+#@NAME: qemu-cortex-a53
+#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_a53
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/arm/armv8a/tune-cortexa53.inc
+
+TCLIBC = "newlib"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-aarch64"
+QB_MACHINE = "-machine virt"
+QB_CPU = "-cpu cortex-a53"
+QB_OPT_APPEND = "-nographic -vga none"
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "qemu_cortex_a53"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH:qemu-cortex-a53 = "aarch64"
--
2.17.1