1 |
On 9/21/15 10:02 AM, Rick "Zero_Chaos" Farina wrote: |
2 |
> On 09/21/2015 08:38 AM, Leno Hou wrote: |
3 |
> |
4 |
> I see no issues here, but I defer to PPC team. |
5 |
> |
6 |
> -Zero_Chaos |
7 |
> |
8 |
>> Currently catalyst does not support ppc64le arch, we add |
9 |
>> subarch power8 to support ppc64le and make stage files. |
10 |
>> |
11 |
>> Signed-off-by: Leno Hou <lenohou@×××××.com> |
12 |
>> --- |
13 |
>> catalyst/arch/powerpc.py | 11 ++++++++++- |
14 |
>> 1 file changed, 10 insertions(+), 1 deletion(-) |
15 |
>> |
16 |
>> diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py |
17 |
>> index f903b38..49bdd92 100644 |
18 |
>> --- a/catalyst/arch/powerpc.py |
19 |
>> +++ b/catalyst/arch/powerpc.py |
20 |
>> @@ -108,6 +108,14 @@ class arch_power6(arch_ppc64): |
21 |
>> self.settings["CFLAGS"]="-O2 -pipe -mcpu=power6 -mtune=power6" |
22 |
>> self.settings["HOSTUSE"]=["altivec","ibm"] |
23 |
>> |
24 |
>> +class arch_power8(arch_ppc64): |
25 |
>> + "builder class for power8 under ppc64le" |
26 |
>> + def __init__(self,myspec): |
27 |
>> + arch_ppc64.__init__(self,myspec) |
28 |
>> + self.settings["CFLAGS"]="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2" |
29 |
>> + self.settings["CHOST"]="powerpc64le-linux-gnu" |
30 |
>> + self.settings["HOSTUSE"]=["altivec","ibm"] |
31 |
>> + |
32 |
>> def register(): |
33 |
>> "Inform main catalyst program of the contents of this plugin." |
34 |
>> return ({ |
35 |
>> @@ -122,6 +130,7 @@ def register(): |
36 |
>> "power4" : arch_power4, |
37 |
>> "power5" : arch_power5, |
38 |
>> "power6" : arch_power6, |
39 |
>> + "power8" : arch_power8, |
40 |
>> "ppc" : arch_ppc, |
41 |
>> "ppc64" : arch_ppc64 |
42 |
>> - }, ("ppc","ppc64","powerpc","powerpc64")) |
43 |
>> + }, ("ppc","ppc64","ppc64le","powerpc","powerpc64","powerpc64le")) |
44 |
>> |
45 |
|
46 |
The CHOST is incorrect. It should powerpc64le-unknown-linux-gnu. Leno, |
47 |
can you please try to switch it to that and do another catalyst run. |
48 |
You can begin with your current stage3 with the above CHOST and it |
49 |
should work out correctly to the new CHOST name. In another place you |
50 |
said there is no compiler "powerpc64le-unknown-linux-gnu" but that makes |
51 |
no sense. The tuple is parsed by gnuconfig script and it should work |
52 |
like all other CHOST names we have in gentoo. |
53 |
|
54 |
-- |
55 |
Anthony G. Basile, Ph.D. |
56 |
Gentoo Linux Developer [Hardened] |
57 |
E-Mail : blueness@g.o |
58 |
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
59 |
GnuPG ID : F52D4BBA |