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>
diff --git a/scripts/support/runner/__init__.py b/scripts/support/runner/__init__.py
index 665e2a5..124f209 100644
--- a/scripts/support/runner/__init__.py
+++ b/scripts/support/runner/__init__.py
@@ -19,6 +19,7 @@
from . import nrfjprog
from . import openocd
from . import pyocd
+from . import qemu
from . import xtensa
__all__ = ['ZephyrBinaryRunner']
diff --git a/scripts/support/runner/qemu.py b/scripts/support/runner/qemu.py
new file mode 100644
index 0000000..07de6f2
--- /dev/null
+++ b/scripts/support/runner/qemu.py
@@ -0,0 +1,25 @@
+# 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')