aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeno Hou <lenohou@gmail.com>2015-09-22 18:34:26 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-09-22 18:41:23 -0400
commitd6b7b3148e604a01f2be24324f1d351fd4f72465 (patch)
treef482577905b21760af25baa82593883659ffee55
parenttargets/stage1/build.py: Fix bug 554154 (diff)
downloadcatalyst-d6b7b3148e604a01f2be24324f1d351fd4f72465.tar.gz
catalyst-d6b7b3148e604a01f2be24324f1d351fd4f72465.tar.bz2
catalyst-d6b7b3148e604a01f2be24324f1d351fd4f72465.zip
Currently catalyst does not support ppc64le arch,
we add subarch power8 to support ppc64le and make stage files. Signed-off-by: Leno Hou <lenohou@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--arch/powerpc.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc.py b/arch/powerpc.py
index e9f611b..7cdbe55 100644
--- a/arch/powerpc.py
+++ b/arch/powerpc.py
@@ -105,6 +105,14 @@ class arch_power6(arch_ppc64):
self.settings["CFLAGS"]="-O2 -pipe -mcpu=power6 -mtune=power6"
self.settings["HOSTUSE"]=["altivec","ibm"]
+class arch_power8(arch_ppc64):
+ "builder class for power8 under ppc64le"
+ def __init__(self,myspec):
+ arch_ppc64.__init__(self,myspec)
+ self.settings["CFLAGS"]="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2"
+ self.settings["CHOST"]="powerpc64le-unknown-linux-gnu"
+ self.settings["HOSTUSE"]=["altivec","ibm"]
+
def register():
"Inform main catalyst program of the contents of this plugin."
return ({
@@ -119,6 +127,7 @@ def register():
"power4" : arch_power4,
"power5" : arch_power5,
"power6" : arch_power6,
+ "power8" : arch_power8,
"ppc" : arch_ppc,
"ppc64" : arch_ppc64
- }, ("ppc","ppc64","powerpc","powerpc64"))
+ }, ("ppc","ppc64","ppc64le","powerpc","powerpc64","powerpc64le"))