The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6888

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Just adds definitions for mips, build tested
From 3fe6d354bd0e6c4bd5d9cee4f8edbf13d87b4bea Mon Sep 17 00:00:00 2001
From: Joe Holden <j...@zorins.us>
Date: Mon, 17 Feb 2020 14:37:30 +0000
Subject: [PATCH] add mips architectures

---
 shared/osarch/architectures.go | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/shared/osarch/architectures.go b/shared/osarch/architectures.go
index 84d9f68568..5b24e0f433 100644
--- a/shared/osarch/architectures.go
+++ b/shared/osarch/architectures.go
@@ -14,6 +14,10 @@ const (
        ARCH_64BIT_POWERPC_BIG_ENDIAN    = 6
        ARCH_64BIT_POWERPC_LITTLE_ENDIAN = 7
        ARCH_64BIT_S390_BIG_ENDIAN       = 8
+       ARCH_32BIT_MIPS_BIG_ENDIAN       = 9
+       ARCH_32BIT_MIPS_LITTLE_ENDIAN    = 10
+       ARCH_64BIT_MIPS64_BIG_ENDIAN     = 11
+       ARCH_64BIT_MIPS64_LITTLE_ENDIAN  = 12
 )
 
 var architectureNames = map[int]string{
@@ -25,6 +29,10 @@ var architectureNames = map[int]string{
        ARCH_64BIT_POWERPC_BIG_ENDIAN:    "ppc64",
        ARCH_64BIT_POWERPC_LITTLE_ENDIAN: "ppc64le",
        ARCH_64BIT_S390_BIG_ENDIAN:       "s390x",
+       ARCH_32BIT_MIPS_BIG_ENDIAN:       "mips",
+       ARCH_32BIT_MIPS_LITTLE_ENDIAN:    "mipsle",
+       ARCH_64BIT_MIPS64_BIG_ENDIAN:     "mips64",
+       ARCH_64BIT_MIPS64_LITTLE_ENDIAN:  "mips64le",
 }
 
 var architectureAliases = map[int][]string{
@@ -35,6 +43,10 @@ var architectureAliases = map[int][]string{
        ARCH_32BIT_POWERPC_BIG_ENDIAN:    {"powerpc"},
        ARCH_64BIT_POWERPC_BIG_ENDIAN:    {"powerpc64", "ppc64"},
        ARCH_64BIT_POWERPC_LITTLE_ENDIAN: {"ppc64el"},
+       ARCH_32BIT_MIPS_BIG_ENDIAN:       {"mips"},
+       ARCH_32BIT_MIPS_LITTLE_ENDIAN:    {"mipsle"},
+       ARCH_64BIT_MIPS64_BIG_ENDIAN:     {"mips64"},
+       ARCH_64BIT_MIPS64_LITTLE_ENDIAN:  {"mips64le"},
 }
 
 var architecturePersonalities = map[int]string{
@@ -46,6 +58,10 @@ var architecturePersonalities = map[int]string{
        ARCH_64BIT_POWERPC_BIG_ENDIAN:    "linux64",
        ARCH_64BIT_POWERPC_LITTLE_ENDIAN: "linux64",
        ARCH_64BIT_S390_BIG_ENDIAN:       "linux64",
+       ARCH_32BIT_MIPS_BIG_ENDIAN:       "linux32",
+       ARCH_32BIT_MIPS_LITTLE_ENDIAN:    "linux32",
+       ARCH_64BIT_MIPS64_BIG_ENDIAN:     "linux64",
+       ARCH_64BIT_MIPS64_LITTLE_ENDIAN:  "linux64",
 }
 
 var architectureSupportedPersonalities = map[int][]int{
@@ -57,6 +73,10 @@ var architectureSupportedPersonalities = map[int][]int{
        ARCH_64BIT_POWERPC_BIG_ENDIAN:    {ARCH_32BIT_POWERPC_BIG_ENDIAN},
        ARCH_64BIT_POWERPC_LITTLE_ENDIAN: {},
        ARCH_64BIT_S390_BIG_ENDIAN:       {},
+       ARCH_32BIT_MIPS_BIG_ENDIAN:       {},
+       ARCH_32BIT_MIPS_LITTLE_ENDIAN:    {},
+       ARCH_64BIT_MIPS64_BIG_ENDIAN:     {ARCH_32BIT_MIPS_BIG_ENDIAN},
+       ARCH_64BIT_MIPS64_LITTLE_ENDIAN:  {ARCH_32BIT_MIPS_LITTLE_ENDIAN},
 }
 
 const ArchitectureDefault = "x86_64"
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to