zephyr/scripts/support/runner/qemu.py
Marti Bolivar a9aec55588 scripts: runner: add qemu.py, a stand-in for QEMU
This, like the shell script, is just a placeholder.

Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
2017-10-28 13:31:22 -04:00

26 lines
690 B
Python

# Copyright (c) 2017 Linaro Limited.
#
# SPDX-License-Identifier: Apache-2.0
'''Runner stub for QEMU.'''
from .core import ZephyrBinaryRunner
class QemuBinaryRunner(ZephyrBinaryRunner):
'''Place-holder for QEMU runner customizations.'''
def __init__(self, debug=False):
super(QemuBinaryRunner, self).__init__(debug=debug)
def replaces_shell_script(shell_script, command):
return shell_script == 'qemu.sh'
def create_from_env(command, debug):
'''Create runner. No environment dependencies.'''
return QemuBinaryRunner()
def run(self, command, **kwargs):
if command == 'debugserver':
print('Detached GDB server')