aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oeqa/utils/qemuzephyrrunner.py
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-01-23 14:23:39 -0800
committerJuro Bystricky <juro.bystricky@intel.com>2017-01-23 15:45:09 -0800
commit18d92a4e8670e33a749c1a3308f27c63efc84109 (patch)
treea332518f82e2773ab5539f08b7dcbb9dad030de6 /lib/oeqa/utils/qemuzephyrrunner.py
parentd7dcbd54bdab9f73cf52da73584fac81305ba020 (diff)
downloadmeta-zephyr-18d92a4e8670e33a749c1a3308f27c63efc84109.tar.gz
meta-zephyr-18d92a4e8670e33a749c1a3308f27c63efc84109.tar.bz2
meta-zephyr-18d92a4e8670e33a749c1a3308f27c63efc84109.zip
qemuzephyrrunner.py: support for qemu-nios2
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Diffstat (limited to 'lib/oeqa/utils/qemuzephyrrunner.py')
-rw-r--r--lib/oeqa/utils/qemuzephyrrunner.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oeqa/utils/qemuzephyrrunner.py b/lib/oeqa/utils/qemuzephyrrunner.py
index 441e0d6..2011434 100644
--- a/lib/oeqa/utils/qemuzephyrrunner.py
+++ b/lib/oeqa/utils/qemuzephyrrunner.py
@@ -74,6 +74,12 @@ class QemuZephyrRunner(QemuRunner):
elif 'x86' in self.machine:
qemu_binary = 'qemu-system-i386'
qemu_machine_args = '-machine type=pc-0.14'
+ elif 'nios2' in self.machine:
+ qemu_binary = 'qemu-system-nios2'
+ qemu_machine_args = '-machine altera_10m50_zephyr'
+ else:
+ bb.error("Unsupported QEMU: %s" % self.machine)
+ return False
self.origchldhandler = signal.getsignal(signal.SIGCHLD)
signal.signal(signal.SIGCHLD, self.handleSIGCHLD)