scummvm random work
[patches.git] / catalyst-s390x.patch
1 Index: arch/s390.py
2 ===================================================================
3 --- arch/s390.py (revision 1224)
4 +++ arch/s390.py (working copy)
5 @@ -8,6 +8,12 @@ class generic_s390(builder.generic):
6 builder.generic.__init__(self,myspec)
7 self.settings["CHROOT"]="chroot"
8
9 +class generic_s390x(builder.generic):
10 + "abstract base class for all s390x builders"
11 + def __init__(self,myspec):
12 + builder.generic.__init__(self,myspec)
13 + self.settings["CHROOT"]="chroot"
14 +
15 class arch_s390(generic_s390):
16 "builder class for generic s390"
17 def __init__(self,myspec):
18 @@ -15,6 +21,13 @@ class arch_s390(generic_s390):
19 self.settings["CFLAGS"]="-O2 -pipe"
20 self.settings["CHOST"]="s390-ibm-linux-gnu"
21
22 +class arch_s390x(generic_s390x):
23 + "builder class for generic s390x"
24 + def __init__(self,myspec):
25 + generic_s390.__init__(self,myspec)
26 + self.settings["CFLAGS"]="-O2 -pipe"
27 + self.settings["CHOST"]="s390x-ibm-linux-gnu"
28 +
29 def register():
30 "Inform main catalyst program of the contents of this plugin."
31 - return ({"s390":arch_s390}, ("s390", ))
32 + return ({"s390":arch_s390,"s390x":arch_s390x}, ("s390", "s390x"))