[elbe-devel] [PATCH] add ppc64le buildtype
Torben Hohn
torben.hohn at linutronix.de
Thu Apr 25 10:15:09 CEST 2019
On Thu, Apr 25, 2019 at 10:08:50AM +0200, Manuel Traut wrote:
> 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
what is this ? ^^^^
> 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": {}}
rest looks good.
remove the unrelated change on elbepack/initvmaction.py
and then.
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> --
> 2.20.1
>
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190425/17d539ff/attachment-0001.sig>
More information about the elbe-devel
mailing list