Add support for m68k
authorRaúl Porcel <armin76@gentoo.org>
Sat, 6 Apr 2013 17:07:00 +0000 (17:07 +0000)
committerW. Trevor King <wking@tremily.us>
Sun, 15 Dec 2013 04:25:08 +0000 (20:25 -0800)
port commit for the rewrite branch.
Brian Dolbec <dolsen@gentoo.org>

catalyst/arch/m68k.py [new file with mode: 0644]

diff --git a/catalyst/arch/m68k.py b/catalyst/arch/m68k.py
new file mode 100644 (file)
index 0000000..02b32a8
--- /dev/null
@@ -0,0 +1,21 @@
+
+import os
+from catalyst import builder
+
+class generic_m68k(builder.generic):
+       "abstract base class for all m68k builders"
+       def __init__(self,myspec):
+               builder.generic.__init__(self,myspec)
+               self.settings["CHROOT"]="chroot"
+               self.settings["CFLAGS"]=" -pipe"
+
+class arch_m68k(generic_m68k):
+       "builder class for generic m68k"
+       def __init__(self,myspec):
+               generic_m68k.__init__(self,myspec)
+               self.settings["CFLAGS"]+=" -O2"
+               self.settings["CHOST"]="m68k-unknown-linux-gnu"
+
+def register():
+       "Inform main catalyst program of the contents of this plugin."
+       return ({ "m68k":arch_m68k }, ("m68k", ))