commit: cfc08db3e0c5bf8c163b843e8b48e3774e4f2582
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 24 22:34:02 2019 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Apr 24 22:39:03 2019 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=cfc08db3
Add builder for riscv64-unknown-linux-gnu
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
catalyst/arch/riscv.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/catalyst/arch/riscv.py b/catalyst/arch/riscv.py
new file mode 100644
index 00000000..6f5695f9
--- /dev/null
+++ b/catalyst/arch/riscv.py
@@ -0,0 +1,13 @@
+
+from catalyst import builder
+
+class arch_riscv(builder.generic):
+ "builder class for riscv"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["COMMON_FLAGS"]="-O2 -pipe"
+ self.settings["CHOST"]="riscv64-unknown-linux-gnu"
+
+def register():
+ "Inform main catalyst program of the contents of this plugin."
+ return ({ "riscv":arch_riscv }, ("rv64","riscv64","riscv"))