From 36f7560236c9b8fe8fcd31f36553d275845cca2a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 20 Nov 2011 01:15:08 +0100 Subject: [PATCH] Add support for building on ARM architectures. --- macros/cflags.macro | 2 ++ python/pakfire/config.py | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/macros/cflags.macro b/macros/cflags.macro index 08908e85a..1a40a09f4 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -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} diff --git a/python/pakfire/config.py b/python/pakfire/config.py index fa89cfb99..64e018942 100644 --- a/python/pakfire/config.py +++ b/python/pakfire/config.py @@ -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(): -- 2.39.5