| Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | #@TYPE: Machine | 
|  | 2 | #@NAME: microbit_v1 | 
|  | 3 | #@DESCRIPTION: Machine for BBC Microbit v1, Zephyr BOARD qemu_cortex_m0 | 
|  | 4 |  | 
|  | 5 | require conf/machine/include/qemu.inc | 
|  | 6 | require conf/machine/include/arm/armv6m/tune-cortexm0.inc | 
|  | 7 |  | 
|  | 8 | MACHINEOVERRIDES =. "nordic:" | 
|  | 9 |  | 
|  | 10 | # GLIBC will not work with Cortex-M. | 
|  | 11 | TCLIBC = "newlib" | 
|  | 12 |  | 
|  | 13 | # For runqemu | 
|  | 14 | QB_SYSTEM_NAME = "qemu-system-arm" | 
|  | 15 | QB_MACHINE = "-machine microbit" | 
|  | 16 | QB_CPU = "-cpu cortex-m0" | 
|  | 17 | QB_GRAPHICS = "-nographic -vga none" | 
|  | 18 | QB_RNG = "" | 
|  | 19 | QB_OPT_APPEND = "-icount shift=6,align=off,sleep=on -rtc clock=vm" | 
|  | 20 |  | 
|  | 21 | # Zephyr RTOS settings | 
|  | 22 | ZEPHYR_BOARD = "qemu_cortex_m0" | 
|  | 23 | ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot" | 
|  | 24 | ARCH:qemu-cortex-m0 = "arm" |