[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#752410: libdebian-installer: ppc64el support



On Mon, 2014-06-23 at 16:09 +0200, Frederic Bonnard wrote:
> Package: libdebian-installer
> Version: 0.91
> Severity: normal
> Tags: patch
> User: debian-powerpc@lists.debian.org
> Usertags: ppc64el
> 
> 
> Dear Maintainer,
> 
> here is a patch from Ubuntu for ppc64el support in libdebian-installer.

This is copy-pasta from powerpc and most of it is useless for ppc64el.
If you want to share the implementation across multiple Debian
architectures, then share it instead of copying.

[...]
> --- libdebian-installer-0.91/src/system/subarch-ppc64el-linux.c 1970-01-01 00:00:00.000000000 +0000
> +++ libdebian-installer-0.91/src/system/subarch-ppc64el-linux.c 2014-05-20 10:28:31.000000000 +0000
> @@ -0,0 +1,92 @@
> +#include <ctype.h>
> +#include <stdlib.h>
> +#include <stdio.h>
> +#include <string.h>
> +#include <strings.h>
> +
> +#include <debian-installer/system/subarch.h>
> +
> +struct map {
> +       char *entry;
> +       char *ret;
> +};
> +
> +static struct map map_generation[] = {
> +       { "OldWorld", "powermac_oldworld" },
> +       { "NewWorld", "powermac_newworld" },
> +       { "NuBus", "powermac_nubus" },
> +       { NULL, NULL }
> +};

PowerMacs are big-endian.

> +static struct map map_machine[] = {
> +       { "PReP", "prep" },
> +       { "CHRP Pegasos", "chrp_pegasos" },
> +       { "EFIKA", "chrp_pegasos" },
> +       { "CHRP IBM", "chrp_rs6k" },
> +       { "CHRP", "chrp" },
> +       { "Amiga", "amiga" },
> +       { "64-bit iSeries Logical Partition", "iseries" },

Do any of these support little-endian operation?

> +       { NULL, NULL }
> +};
> +
> +static struct map map_platform[] = {
> +       { "PS3", "ps3" },
> +       { "Cell", "cell" },
> +       { "PA Semi", "pasemi" },
> +       { "Maple", "chrp_ibm" },
> +       { "pSeries", "chrp_ibm" },
> +       { "P4080 DS", "fsl" },
> +       { "QEMU e500", "fsl" },
[...]

At least PS3/Cell are big-endian only.

Ben.

-- 
Ben Hutchings
For every complex problem
there is a solution that is simple, neat, and wrong.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: