public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst][PATCH v1] arch/powerpc.py:add support for subarch power8 bug#560818
@ 2015-09-21 12:38 Leno Hou
  2015-09-21 14:02 ` Rick "Zero_Chaos" Farina
  0 siblings, 1 reply; 10+ messages in thread
From: Leno Hou @ 2015-09-21 12:38 UTC (permalink / raw
  To: gentoo-catalyst, vapier, blueness; +Cc: Leno Hou

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>
---
 catalyst/arch/powerpc.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index f903b38..49bdd92 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -108,6 +108,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-linux-gnu"
+		self.settings["HOSTUSE"]=["altivec","ibm"]
+
 def register():
 	"Inform main catalyst program of the contents of this plugin."
 	return ({
@@ -122,6 +130,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"))
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-09-22 22:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-21 12:38 [gentoo-catalyst][PATCH v1] arch/powerpc.py:add support for subarch power8 bug#560818 Leno Hou
2015-09-21 14:02 ` Rick "Zero_Chaos" Farina
2015-09-21 17:15   ` Anthony G. Basile
2015-09-21 18:21     ` Mike Frysinger
2015-09-22  6:34       ` Leno Hou
2015-09-22 13:15         ` Mike Frysinger
2015-09-22 17:00           ` Leno Hou
2015-09-22 20:20             ` Anthony G. Basile
2015-09-22 21:53               ` Mike Frysinger
2015-09-22 22:45                 ` Anthony G. Basile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox