public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst][PATCH V3   1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform
@ 2016-04-21  4:42 Leno Hou
  2016-04-21  4:42 ` [gentoo-catalyst][PATCH V3 2/3] create-iso: modify the mkisofs parameter of ppc64 little-endian Leno Hou
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Leno Hou @ 2016-04-21  4:42 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: blueness, Kevin Zhao, Mike Frysinger, Leno Hou

From: Kevin Zhao <kevin.zhaoshuai@gmail.com>

1) For little-endian, add subarch ppc64le,power8le,power7le
2) For big-endian, add subarch power8, power7.
3) ppc64le keyword will be used in create iso and intergrating bootloader.

Signed-off-by: Kevin Zhao <kevin.zhaoshuai@gmail.com>
CC: Mike Frysinger <vapier@gentoo.org>
CC: Leno Hou <lenohou@gmail.com>
---
 catalyst/arch/powerpc.py | 37 ++++++++++++++++++++++++++++++++++---
 1 file changed, 34 insertions(+), 3 deletions(-)

diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index 7f4194e..bbc8941 100644
--- a/catalyst/arch/powerpc.py
+++ b/catalyst/arch/powerpc.py
@@ -28,6 +28,13 @@ class arch_ppc64(generic_ppc64):
 		self.settings["CFLAGS"]="-O2 -pipe"
 		self.settings["CHOST"]="powerpc64-unknown-linux-gnu"
 
+class arch_ppc64le(generic_ppc64):
+	"builder class for generic ppc64le"
+	def __init__(self,myspec):
+		generic_ppc64.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe"
+		self.settings["CHOST"]="powerpc64le-unknown-linux-gnu"
+
 class arch_970(arch_ppc64):
 	"builder class for 970 aka G5 under ppc64"
 	def __init__(self,myspec):
@@ -99,12 +106,32 @@ class arch_power6(arch_ppc64):
 		self.settings["CFLAGS"]="-O2 -pipe -mcpu=power6 -mtune=power6"
 		self.settings["HOSTUSE"]=["altivec","ibm"]
 
+class arch_power7(arch_ppc64):
+	"builder class for power7 under ppc64"
+	def __init__(self,myspec):
+		arch_ppc64.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe -mcpu=power7 -mtune=power7 -mabi=elfv2"
+		self.settings["HOSTUSE"]=["altivec","ibm"]
+
+class arch_power7le(arch_ppc64le):
+	"builder class for power7 under ppc64le"
+	def __init__(self,myspec):
+		arch_ppc64le.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe -mcpu=power7 -mtune=power7 -mabi=elfv2"
+		self.settings["HOSTUSE"]=["altivec","ibm"]
+
 class arch_power8(arch_ppc64):
-	"builder class for power8 under ppc64le"
+	"builder class for power8 under ppc64"
 	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"]
+
+class arch_power8le(arch_ppc64le):
+	"builder class for power8 under ppc64le"
+	def __init__(self,myspec):
+		arch_ppc64le.__init__(self,myspec)
+		self.settings["CFLAGS"]="-O2 -pipe -mcpu=power8 -mtune=power8 -mabi=elfv2"
 		self.settings["HOSTUSE"]=["altivec","ibm"]
 
 def register():
@@ -121,7 +148,11 @@ def register():
 		"power4"	: arch_power4,
 		"power5"	: arch_power5,
 		"power6"	: arch_power6,
+		"power7"	: arch_power7,
+		"power7le"	: arch_power7le,
 		"power8"	: arch_power8,
+		"power8le"	: arch_power8le,
 		"ppc"		: arch_ppc,
-		"ppc64"		: arch_ppc64
+		"ppc64"		: arch_ppc64,
+		"ppc64le"	: arch_ppc64le
 	}, ("ppc","ppc64","ppc64le","powerpc","powerpc64","powerpc64le"))
-- 
2.1.4



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

end of thread, other threads:[~2016-04-21  5:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21  4:42 [gentoo-catalyst][PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform Leno Hou
2016-04-21  4:42 ` [gentoo-catalyst][PATCH V3 2/3] create-iso: modify the mkisofs parameter of ppc64 little-endian Leno Hou
2016-04-21  5:39   ` Mike Frysinger
2016-04-21  4:42 ` [gentoo-catalyst][PATCH V3 3/3] livecd/cdtar:add bootloader file grub 2.00 and bootinfo.txt for ppc64le Leno Hou
2016-04-21  5:37 ` [gentoo-catalyst][PATCH V3 1/3] catalyst/arch/powerpc.py: add subarch ppc64le platform Mike Frysinger

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