From: "Jon Mason" <jon.mason@arm.com>
To: meta-arm@lists.yoctoproject.org
Subject: [PATCH] arm/machine: add zephyr machine conf for microbit
Date: Tue, 12 Jan 2021 09:50:53 -0500 [thread overview]
Message-ID: <20210112145053.28674-1-jon.mason@arm.com> (raw)
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
next reply other threads:[~2021-01-12 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 14:50 Jon Mason [this message]
2021-01-14 19:23 ` [meta-arm] [PATCH] arm/machine: add zephyr machine conf for microbit Jon Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210112145053.28674-1-jon.mason@arm.com \
--to=jon.mason@arm.com \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.