1 |
commit: 0b7d52277fdade0493dc4852cb5137d90f7059c2 |
2 |
Author: Leno Hou <lenohou <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Sep 22 22:34:26 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 22 22:39:07 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=0b7d5227 |
7 |
|
8 |
Currently catalyst does not support ppc64le arch, |
9 |
we add subarch power8 to support ppc64le and make stage files. |
10 |
|
11 |
Signed-off-by: Leno Hou <lenohou <AT> gmail.com> |
12 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
13 |
|
14 |
catalyst/arch/powerpc.py | 11 ++++++++++- |
15 |
1 file changed, 10 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py |
18 |
index f903b38..8e0f540 100644 |
19 |
--- a/catalyst/arch/powerpc.py |
20 |
+++ b/catalyst/arch/powerpc.py |
21 |
@@ -108,6 +108,14 @@ class arch_power6(arch_ppc64): |
22 |
self.settings["CFLAGS"]="-O2 -pipe -mcpu=power6 -mtune=power6" |
23 |
self.settings["HOSTUSE"]=["altivec","ibm"] |
24 |
|
25 |
+class arch_power8(arch_ppc64): |
26 |
+ "builder class for power8 under ppc64le" |
27 |
+ def __init__(self,myspec): |
28 |
+ arch_ppc64.__init__(self,myspec) |
29 |
+ self.settings["CFLAGS"]="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2" |
30 |
+ self.settings["CHOST"]="powerpc64le-unknown-linux-gnu" |
31 |
+ self.settings["HOSTUSE"]=["altivec","ibm"] |
32 |
+ |
33 |
def register(): |
34 |
"Inform main catalyst program of the contents of this plugin." |
35 |
return ({ |
36 |
@@ -122,6 +130,7 @@ def register(): |
37 |
"power4" : arch_power4, |
38 |
"power5" : arch_power5, |
39 |
"power6" : arch_power6, |
40 |
+ "power8" : arch_power8, |
41 |
"ppc" : arch_ppc, |
42 |
"ppc64" : arch_ppc64 |
43 |
- }, ("ppc","ppc64","powerpc","powerpc64")) |
44 |
+ }, ("ppc","ppc64","ppc64le","powerpc","powerpc64","powerpc64le")) |