public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marcus Comstedt" <marcus@mc.pp.se>
To: gentoo-catalyst@lists.gentoo.org
Cc: Marcus Comstedt <marcus@mc.pp.se>
Subject: [gentoo-catalyst] [PATCH] Add builder entry for aarch64_be-unknown-linux-gnu
Date: Mon,  2 Aug 2021 22:30:17 +0200	[thread overview]
Message-ID: <20210802203017.41422-1-marcus@mc.pp.se> (raw)

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
---

Note: This is for the catalyst-3.0-stable branch.  master seems to be
      structured differently.

This fixes Bug 782076.

 catalyst/arch/arm64.py | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/catalyst/arch/arm64.py b/catalyst/arch/arm64.py
index 9a223834..6f5d1f37 100644
--- a/catalyst/arch/arm64.py
+++ b/catalyst/arch/arm64.py
@@ -1,13 +1,27 @@
 
 from catalyst import builder
 
-class arch_arm64(builder.generic):
-	"builder class for arm64"
+class generic_arm64(builder.generic):
+	"abstract base class for all 64-bit arm builders"
 	def __init__(self,myspec):
 		builder.generic.__init__(self,myspec)
 		self.settings["COMMON_FLAGS"]="-O2 -pipe"
+
+class arch_arm64(generic_arm64):
+	"builder class for arm64 (little endian) target"
+	def __init__(self,myspec):
+		generic_arm64.__init__(self,myspec)
 		self.settings["CHOST"]="aarch64-unknown-linux-gnu"
 
+class arch_arm64_be(generic_arm64):
+	"builder class for arm64 (big endian) target"
+	def __init__(self,myspec):
+		generic_arm64.__init__(self,myspec)
+		self.settings["CHOST"]="aarch64_be-unknown-linux-gnu"
+
 def register():
 	"Inform main catalyst program of the contents of this plugin."
-	return ({ "arm64":arch_arm64 }, ("aarch64","arm64", ))
+	return ({
+		"arm64":arch_arm64,
+		"arm64_be":arch_arm64_be
+		}, ("aarch64","arm64","aarch64_be","arm64_be" ))
-- 
2.31.1



             reply	other threads:[~2021-08-02 20:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02 20:30 Marcus Comstedt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-08-03  6:30 [gentoo-catalyst] [PATCH] Add builder entry for aarch64_be-unknown-linux-gnu Marcus Comstedt

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=20210802203017.41422-1-marcus@mc.pp.se \
    --to=marcus@mc.pp.se \
    --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