[lxc-devel] [lxc/master] confile: add more archs to lxc_config_parse_arch()
brauner on Github
lxc-bot at linuxcontainers.org
Fri Aug 19 09:37:09 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 352 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160819/c7461b0a/attachment.bin>
-------------- next part --------------
From 08245e8c1b77eb068c3e3b41c787e5b170554aad Mon Sep 17 00:00:00 2001
From: Christian Brauner <cbrauner at suse.de>
Date: Fri, 19 Aug 2016 11:15:30 +0200
Subject: [PATCH] confile: add more archs to lxc_config_parse_arch()
Signed-off-by: Christian Brauner <cbrauner at suse.de>
---
src/lxc/confile.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index f5e639d..fac919d 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -2081,11 +2081,24 @@ signed long lxc_config_parse_arch(const char *arch)
{ "athlon", PER_LINUX32 },
{ "mips", PER_LINUX32 },
{ "mipsel", PER_LINUX32 },
+ { "ppc", PER_LINUX32 },
+ { "arm", PER_LINUX32 },
+ { "armv7l", PER_LINUX32 },
+ { "armhf", PER_LINUX32 },
+ { "armel", PER_LINUX32 },
+ { "powerpc", PER_LINUX32 },
{ "linux64", PER_LINUX },
{ "x86_64", PER_LINUX },
{ "amd64", PER_LINUX },
{ "mips64", PER_LINUX },
{ "mips64el", PER_LINUX },
+ { "ppc64", PER_LINUX },
+ { "ppc64le", PER_LINUX },
+ { "ppc64el", PER_LINUX },
+ { "powerpc64", PER_LINUX },
+ { "s390x", PER_LINUX },
+ { "aarch64", PER_LINUX },
+ { "arm64", PER_LINUX },
};
size_t len = sizeof(pername) / sizeof(pername[0]);
More information about the lxc-devel
mailing list