From 53669ed62108d2f533d73a4d964123a6d7e68040 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 20 Jan 2015 07:31:30 -0500 Subject: [PATCH] Add support for aarch64 --- macros/arch.macro | 6 +++++- src/pakfire/distro.py | 2 +- src/pakfire/system.py | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) 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: -- 2.39.5