From: Kevin Zhao <kevin.zhaoshuai@gmail.com>
To: gentoo-catalyst@lists.gentoo.org
Cc: kevin.zhaoshuai@gmail.com
Subject: [gentoo-catalyst][PATCH v1 1/3] Add an subarch ppc64le,as the little-endian of ppc64.
Date: Wed, 16 Dec 2015 11:40:52 -0500 [thread overview]
Message-ID: <1450284052-13005-1-git-send-email-kevin.zhaoshuai@gmail.com> (raw)
Add a subarch ppc64le, tweak the power8 inheriting from
arch_ppc64 to arch_ppc64le.So that the ppc64le can be a
keywork,it will be used in create iso and intergrating
bootloader.
Signed-off-by: Kevin Zhao <kevin.zhaoshuai@gmail.com>
---
catalyst/arch/powerpc.py | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/catalyst/arch/powerpc.py b/catalyst/arch/powerpc.py
index 7f4194e..a52b0d4 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,10 +106,10 @@ class arch_power6(arch_ppc64):
self.settings["CFLAGS"]="-O2 -pipe -mcpu=power6 -mtune=power6"
self.settings["HOSTUSE"]=["altivec","ibm"]
-class arch_power8(arch_ppc64):
+class arch_power8(arch_ppc64le):
"builder class for power8 under ppc64le"
def __init__(self,myspec):
- arch_ppc64.__init__(self,myspec)
+ arch_ppc64le.__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"]
@@ -123,5 +130,6 @@ def register():
"power6" : arch_power6,
"power8" : arch_power8,
"ppc" : arch_ppc,
- "ppc64" : arch_ppc64
+ "ppc64" : arch_ppc64,
+ "ppc64le" : arch_ppc64le
}, ("ppc","ppc64","ppc64le","powerpc","powerpc64","powerpc64le"))
--
2.1.0
next reply other threads:[~2015-12-16 16:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 16:40 Kevin Zhao [this message]
2015-12-16 16:41 ` [gentoo-catalyst][PATCH v1 2/3] Modify the create iso parameter of ppc64le and power8 Kevin Zhao
2016-01-05 23:30 ` Mike Frysinger
2016-01-07 2:35 ` Kevin Zhao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450284052-13005-1-git-send-email-kevin.zhaoshuai@gmail.com \
--to=kevin.zhaoshuai@gmail.com \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox