Skip to contentSkip to conversation

arm/machine: add zephyr machine confs for a53

PATCH New Jon Mason 1 participant 1 message Mar 26, 2021

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/1 arm/machine: add zephyr machine confs for a53

Zephyr supports QEMU based machine for Cortex a53. Add machine confs for this. This enables us to verify a53 tunings.

Change-Id I398bc5b3e8bd77b7269bba056a0f75229f04c7a7
---
 .gitlab-ci.yml                             |  3 +++
 kas/qemu-cortex-a53.yml                    | 10 ++++++++++
 meta-arm/conf/machine/qemu-cortex-a53.conf | 19 +++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 kas/qemu-cortex-a53.yml
 create mode 100644 meta-arm/conf/machine/qemu-cortex-a53.conf
.gitlab-ci.yml +3 -0
index 665566a..5dea6ac 100644
@@ -100,6 +100,9 @@ n1sdp:
 n1sdp/armgcc:
   extends: .build
 
+qemu-cortex-a53:
+  extends: .build
+
 qemuarm:
   extends: .build
 
kas/qemu-cortex-a53.yml new file +10 -0
new file mode 100644
index 0000000..296d8d5
@@ -0,0 +1,10 @@
+header:
+  version: 9
+  includes:
+    - base.yml
+    - meta-zephyr.yml
+
+machine: qemu-cortex-a53
+
+target:
+  - zephyr-philosophers
meta-arm/conf/machine/qemu-cortex-a53.conf new file +19 -0
new file mode 100644
index 0000000..228002c
@@ -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/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"
Signature · 1 line
2.17.1