arm/machine: add zephyr machine conf for microbit
PATCH 1/1 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).
--- meta-arm/conf/machine/microbit-v1.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-arm/conf/machine/microbit-v1.conf
meta-arm/conf/machine/microbit-v1.conf new file +20 -0
@@ -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"
Signature · 1 line
2.17.1
Quoted 5 lines · Jon Mason
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.
Quoted 7 lines
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 Ia997a162c10cf1a6b8fea244cb1960f4d4c66adcSigned-off-by Jon Mason <[email protected]>---
Pulled into master.
Thanks,
Jon
Quoted 37 lines
meta-arm/conf/machine/microbit-v1.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-arm/conf/machine/microbit-v1.confmeta-arm/conf/machine/microbit-v1.conf new file +20
-0@@ -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"Signature · 1 line
2.17.1