qemu.py 684 B

12345678910111213141516171819202122232425262728293031
  1. # Copyright (c) 2017 Linaro Limited.
  2. #
  3. # SPDX-License-Identifier: Apache-2.0
  4. '''Runner stub for QEMU.'''
  5. from runners.core import ZephyrBinaryRunner, RunnerCaps
  6. class QemuBinaryRunner(ZephyrBinaryRunner):
  7. '''Place-holder for QEMU runner customizations.'''
  8. @classmethod
  9. def name(cls):
  10. return 'qemu'
  11. @classmethod
  12. def capabilities(cls):
  13. # This is a stub.
  14. return RunnerCaps(commands=set())
  15. @classmethod
  16. def do_add_parser(cls, parser):
  17. pass # Nothing to do.
  18. @classmethod
  19. def do_create(cls, cfg, args):
  20. return QemuBinaryRunner(cfg)
  21. def do_run(self, command, **kwargs):
  22. pass