2017-10-26 23:05:10 +08:00
|
|
|
# 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)
|
|
|
|
|
2017-11-17 02:32:00 +08:00
|
|
|
@classmethod
|
|
|
|
def name(cls):
|
|
|
|
return 'qemu'
|
2017-10-26 23:05:10 +08:00
|
|
|
|
|
|
|
def create_from_env(command, debug):
|
|
|
|
'''Create runner. No environment dependencies.'''
|
|
|
|
return QemuBinaryRunner()
|
|
|
|
|
2017-11-16 23:41:39 +08:00
|
|
|
def do_run(self, command, **kwargs):
|
2017-10-26 23:05:10 +08:00
|
|
|
if command == 'debugserver':
|
|
|
|
print('Detached GDB server')
|