mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-22 12:45:22 +00:00
The Python-based runners have replaced the old shell scripts. Refactor the build system accordingly: - FLASH_SCRIPT is now BOARD_FLASH_RUNNER - DEBUG_SCRIPT is now BOARD_DEBUG_RUNNER The values, rather than being the names of files, are now the names of runners in scripts/support/runner. They are still short, descriptive names like "openocd", "jlink", "em-starterkit", etc. Adjust the zephyr_flash_debug.py call and runner internals accordingly. Have each runner class report a name and the commands it can handle. This lets us move some boilerplate from each do_run() method into the common run() routine, and enables further improvements in future patches. The handles_command() method is temporary, and will be replaced by a more general mechanism for describing runner capabilities in a subsequent patch. The initial use case for extending this is to add device tree awareness to the runners. To try to avoid user confusion, abort the configuration if an xxx_SCRIPT is defined. Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
29 lines
532 B
CMake
29 lines
532 B
CMake
set(EMU_PLATFORM qemu)
|
|
|
|
if(NOT CONFIG_REBOOT)
|
|
set(REBOOT_FLAG -no-reboot)
|
|
endif()
|
|
|
|
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
|
|
set(QEMU_FLAGS_${ARCH}
|
|
-m 8
|
|
-cpu ${QEMU_CPU_TYPE_${ARCH}}
|
|
-device isa-debug-exit,iobase=0xf4,iosize=0x04
|
|
${REBOOT_FLAG}
|
|
-nographic
|
|
-vga none
|
|
-display none
|
|
-net none
|
|
-clock dynticks
|
|
-no-acpi
|
|
-balloon none
|
|
-L ${QEMU_BIOS}
|
|
-bios bios.bin
|
|
-machine type=pc-0.14
|
|
)
|
|
|
|
# TODO: Support debug
|
|
# set(BOARD_DEBUG_RUNNER qemu)
|
|
# debugserver: QEMU_EXTRA_FLAGS += -s -S
|
|
# debugserver: qemu
|