From 761bcbb3651d647de0689a009586f4cb91cb9483 Mon Sep 17 00:00:00 2001 From: Jon Mason Date: Tue, 12 Jan 2021 09:50:53 -0500 Subject: [PATCH] arm/machine: add zephyr machine conf for microbit 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 --- 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 00000000..c4cc4d50 --- /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"