From: Michael Tremer Date: Tue, 20 Jan 2015 12:31:30 +0000 (-0500) Subject: Add support for aarch64 X-Git-Tag: 0.9.27~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53669ed62108d2f533d73a4d964123a6d7e68040;p=pakfire.git Add support for aarch64 --- diff --git a/macros/arch.macro b/macros/arch.macro index e3d38cc1e..46f3cb248 100644 --- a/macros/arch.macro +++ b/macros/arch.macro @@ -17,8 +17,12 @@ infodir = %{datadir}/info mandir = %{datadir}/man unitdir = %{prefix}/lib/systemd/system +# Libs are installed in /lib64 and %{prefix}/lib64 on aarch64 and x86_64 +if "%{DISTRO_ARCH}" == "aarch64" + lib = lib64 +end + if "%{DISTRO_ARCH}" == "x86_64" - # Libs are installed in /lib64 and %{prefix}/lib64 on x86_64 lib = lib64 end diff --git a/src/pakfire/distro.py b/src/pakfire/distro.py index fae20bb36..a6ff59891 100644 --- a/src/pakfire/distro.py +++ b/src/pakfire/distro.py @@ -165,7 +165,7 @@ class Distribution(object): """ Returns the "class" this architecture belongs to. """ - if self.arch.startswith("arm"): + if self.arch.startswith("arm") or self.arch == "aarch64": return "arm" if self.arch in ("i686", "x86_64"): diff --git a/src/pakfire/system.py b/src/pakfire/system.py index 2bba80208..950bb8365 100644 --- a/src/pakfire/system.py +++ b/src/pakfire/system.py @@ -89,6 +89,8 @@ class System(object): "armv6l" : ["armv5tel",], "armv7l" : ["armv7hl", "armv5tel",], "armv7hl" : ["armv7hl", "armv5tel",], + + "aarch64" : ["aarch64",], } try: