All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm/machine: add zephyr machine conf for microbit
@ 2021-01-12 14:50 Jon Mason
  2021-01-14 19:23 ` [meta-arm] " Jon Mason
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Mason @ 2021-01-12 14:50 UTC (permalink / raw)
  To: meta-arm

Zephyr supports QEMU based machine for Cortex M0 (qemu-cortex-m0).  This
is actually using the BBC Microbit v1 machine in QEMU.  Use this more
accurate name for the machine conf.  This enables us to verify m0
tunings.

NOTE: qemu-cortex-m0's zephyr config has SRAM too small to run
zephyr-kernel-test-all, but can run zephyr-philosophers and
zephyr-kernel-test-sleep (and possibly others).

Change-Id: Ia997a162c10cf1a6b8fea244cb1960f4d4c66adc
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 meta-arm/conf/machine/microbit-v1.conf | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta-arm/conf/machine/microbit-v1.conf

diff --git a/meta-arm/conf/machine/microbit-v1.conf b/meta-arm/conf/machine/microbit-v1.conf
new file mode 100644
index 0000000..c4cc4d5
--- /dev/null
+++ b/meta-arm/conf/machine/microbit-v1.conf
@@ -0,0 +1,20 @@
+#@TYPE: Machine
+#@NAME: microbit_v1
+#@DESCRIPTION: Machine for BBC Microbit v1, Zephyr BOARD qemu_cortex_m0
+
+require conf/machine/include/qemu.inc
+require conf/machine/include/tune-cortex-m0.inc
+
+MACHINEOVERRIDES =. "nordic:"
+
+# For runqemu
+QB_SYSTEM_NAME = "qemu-system-arm"
+QB_MACHINE = "-machine microbit"
+QB_CPU = "-cpu cortex-m0"
+QB_OPT_APPEND = "-nographic -vga none"
+QB_RNG = ""
+
+# Zephyr RTOS settings
+ZEPHYR_BOARD = "qemu_cortex_m0"
+ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
+ARCH_qemu-cortex-m0 = "arm"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-14 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12 14:50 [PATCH] arm/machine: add zephyr machine conf for microbit Jon Mason
2021-01-14 19:23 ` [meta-arm] " Jon Mason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.