commit:     2998cce2717052a01861b23b90572fb189d12cdc
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 12:52:55 2022 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 12:52:55 2022 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=2998cce2

arch: Add loong

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 catalyst/arch/loong.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/catalyst/arch/loong.py b/catalyst/arch/loong.py
new file mode 100644
index 00000000..66786dfe
--- /dev/null
+++ b/catalyst/arch/loong.py
@@ -0,0 +1,20 @@
+
+from catalyst import builder
+
+class generic_loong(builder.generic):
+       "abstract base class for all loong builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["COMMON_FLAGS"]=" -pipe"
+
+class arch_loong(generic_loong):
+       "builder class for generic loong"
+       def __init__(self,myspec):
+               generic_loong.__init__(self,myspec)
+               self.settings["COMMON_FLAGS"]+=" -O2"
+               self.settings["CHOST"]="loongarch64-unknown-linux-gnu"
+
+def register():
+       "Inform main catalyst program of the contents of this plugin."
+       return ({ "loong":arch_loong },
+       ("loong", ))

Reply via email to