* [gentoo-catalyst] [PATCH] Add builder entry for aarch64_be-unknown-linux-gnu
@ 2021-08-02 20:30 Marcus Comstedt
0 siblings, 0 replies; 2+ messages in thread
From: Marcus Comstedt @ 2021-08-02 20:30 UTC (permalink / raw
To: gentoo-catalyst; +Cc: Marcus Comstedt
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-catalyst] [PATCH] Add builder entry for aarch64_be-unknown-linux-gnu
@ 2021-08-03 6:30 Marcus Comstedt
0 siblings, 0 replies; 2+ messages in thread
From: Marcus Comstedt @ 2021-08-03 6:30 UTC (permalink / raw
To: gentoo-catalyst; +Cc: Marcus Comstedt
Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
---
Here is corresponding patch for master.
arch/arm64.toml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64.toml b/arch/arm64.toml
index 613b4e68..222b25f0 100644
--- a/arch/arm64.toml
+++ b/arch/arm64.toml
@@ -2,3 +2,7 @@
COMMON_FLAGS = "-O2 -pipe"
CHOST = "aarch64-unknown-linux-gnu"
+[arm64.arm64_be]
+COMMON_FLAGS = "-O2 -pipe"
+CHOST = "aarch64_be-unknown-linux-gnu"
+
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-03 6:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-02 20:30 [gentoo-catalyst] [PATCH] Add builder entry for aarch64_be-unknown-linux-gnu Marcus Comstedt
-- strict thread matches above, loose matches on Subject: below --
2021-08-03 6:30 Marcus Comstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox