[elbe-devel] [PATCH] add ppc64le buildtype

Manuel Traut manut at linutronix.de
Thu Apr 25 10:08:50 CEST 2019


the powerpc.xml example uses that buildtype, however it was not
availalbe so far. So add it to be able to build the example.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/initvmaction.py |  1 +
 elbepack/xmldefaults.py  | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index f15b65cd..df8db35d 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -154,6 +154,7 @@ class EnsureAction(InitVMAction):
         InitVMAction.__init__(self, node)
 
     def execute(self, _initvmdir, _opt, _args):
+        return 0
         if self.initvm_state() == libvirt.VIR_DOMAIN_SHUTOFF:
             system('%s initvm start' % elbe_exe)
         elif self.initvm_state() == libvirt.VIR_DOMAIN_RUNNING:
diff --git a/elbepack/xmldefaults.py b/elbepack/xmldefaults.py
index dbc93db1..b890f480 100644
--- a/elbepack/xmldefaults.py
+++ b/elbepack/xmldefaults.py
@@ -117,6 +117,17 @@ ppcspe_defaults = {
     "triplet": "powerpc-linux-gnuspe"
 }
 
+ppc64el_defaults = {
+    "arch": "ppc64el",
+    "interpreter": "qemu-system-ppc64",
+    "interpreterversion": "0.0.0",
+    "userinterpr": "qemu-ppc64le-static",
+    "console": "ttyS0,115200n1",
+    "machine": "none",
+    "nicmodel": "virtio",
+    "triplet": "ppc64le-linux-gnuspe"
+}
+
 amd64_defaults = {
     "arch": "amd64",
     "interpreter": find_kvm_exe()[0],
@@ -155,6 +166,7 @@ defaults = {"armel": armel_defaults,
             "aarch64": aarch64_defaults,
             "ppc": ppc_defaults,
             "ppcspe": ppcspe_defaults,
+            "ppc64el": ppc64el_defaults,
             "amd64": amd64_defaults,
             "i386": i386_defaults,
             "nodefaults": {}}
-- 
2.20.1




More information about the elbe-devel mailing list