diff options
author | 2022-10-11 14:52:55 +0200 | |
---|---|---|
committer | 2022-10-11 14:52:55 +0200 | |
commit | 2998cce2717052a01861b23b90572fb189d12cdc (patch) | |
tree | 9f3eef3d92da79881ce56b66be45730d0f2d4568 | |
parent | catalyst 3.0.22 (diff) | |
download | catalyst-2998cce2717052a01861b23b90572fb189d12cdc.tar.gz catalyst-2998cce2717052a01861b23b90572fb189d12cdc.tar.bz2 catalyst-2998cce2717052a01861b23b90572fb189d12cdc.zip |
arch: Add loong
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r-- | catalyst/arch/loong.py | 20 |
1 files changed, 20 insertions, 0 deletions
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", )) |