]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
Add support for building on ARM architectures.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 00:15:08 +0000 (01:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Nov 2011 00:15:08 +0000 (01:15 +0100)
macros/cflags.macro
python/pakfire/config.py

index 08908e85aedcb54a890c822e4055d267b6a6e4fb..1a40a09f495e93e2d45220874343edb9a8cf9b93 100644 (file)
@@ -4,6 +4,8 @@ GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4
 
 CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
 CFLAGS_x86_64   = -m64 -mtune=generic
+CFLAGS_armv5tel = -march=armv5te
+CFLAGS_armv7hl  = -march=armv7l
 
 export CFLAGS   = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}}
 export CXXFLAGS = %{CFLAGS}
index fa89cfb99c2296228d647e3dd08596689107c391..64e018942f366c088756510d36c10a398aa4cbce 100644 (file)
@@ -170,10 +170,15 @@ class Config(object):
        @property
        def supported_arches(self):
                host_arches = {
-                       "x86_64" : [ "x86_64", ],
-                       "i686"   : [ "i686", "x86_64", ],
-                       "i586"   : [ "i586", "i686", "x86_64", ],
-                       "i486"   : [ "i486", "i586", "i686", "x86_64", ],
+                       # x86
+                       "x86_64"   : [ "x86_64", ],
+                       "i686"     : [ "i686", "x86_64", ],
+                       "i586"     : [ "i586", "i686", "x86_64", ],
+                       "i486"     : [ "i486", "i586", "i686", "x86_64", ],
+
+                       # ARM
+                       "armv5tel" : [ "armv5tel", "armv5tejl", ],
+                       "armv7hl " : [ "armv7l", ],
                }
 
                for host, can_be_built in host_arches.items():