summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2013-03-04 12:30:16 -0500
committerChanho Park <chanho61.park@samsung.com>2014-07-14 15:26:03 +0900
commitc528674145287d49ce3a655c6397914cbf61b551 (patch)
treea6a16169822b4b5f9ee080143d746fdab4d9dac4
parent48b41d2b2627d07d68b0de842c655468a63c3335 (diff)
downloadrpm-c528674145287d49ce3a655c6397914cbf61b551.tar.gz
rpm-c528674145287d49ce3a655c6397914cbf61b551.tar.bz2
rpm-c528674145287d49ce3a655c6397914cbf61b551.zip
Here is my updated patch adding AArch64 support. The main change was to use CANONCOLOR=3 rather than 2. --Mark Change-Id: I79e397534d25a4ef4d293222c4cbd415a8fcd6b5 Signed-off-by: Panu Matilainen <pmatilai@redhat.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com>
-rwxr-xr-xinstallplatform6
-rw-r--r--rpmrc.in10
2 files changed, 16 insertions, 0 deletions
diff --git a/installplatform b/installplatform
index a68b3c06a..f5378d899 100755
--- a/installplatform
+++ b/installplatform
@@ -101,6 +101,12 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
CANONARCH=alpha
CANONCOLOR=0
;;
+ aarch64)
+ ISANAME=aarch
+ ISABITS=64
+ CANONARCH=aarch64
+ CANONCOLOR=3
+ ;;
noarch)
CANONARCH=noarch
CANONCOLOR=0
diff --git a/rpmrc.in b/rpmrc.in
index a4b6e1e34..30481b24c 100644
--- a/rpmrc.in
+++ b/rpmrc.in
@@ -85,6 +85,8 @@ optflags: sh3 -O2 -g
optflags: sh4 -O2 -g -mieee
optflags: sh4a -O2 -g -mieee
+optflags: aarch64 -O2 -g
+
#############################################################
# Architecture colors
@@ -118,6 +120,8 @@ archcolor: x86_64 2
archcolor: sh3 1
archcolor: sh4 1
+archcolor: aarch64 2
+
#############################################################
# Canonical arch names and numbers
@@ -202,6 +206,7 @@ arch_canon: sh3: sh3 17
arch_canon: sh4: sh4 17
arch_canon: sh4a: sh4a 17
arch_canon: xtensa: xtensa 18
+arch_canon: aarch64: aarch64 19
#############################################################
# Canonical OS names and numbers
@@ -320,6 +325,7 @@ buildarchtranslate: armv5l: armv4l
buildarchtranslate: armv5tel: armv4l
buildarchtranslate: armv5b: armv4b
buildarchtranslate: armv5teb: armv4b
+buildarchtranslate: aarch64: aarch64
#############################################################
# Architecture compatibility
@@ -416,6 +422,8 @@ arch_compat: sh3: noarch
arch_compat: sh4: noarch
arch_compat: sh4a: sh4
+arch_compat: aarch64: noarch
+
os_compat: IRIX64: IRIX
os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6
os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
@@ -447,6 +455,8 @@ os_compat: Darwin: MacOSX
buildarch_compat: ia64: noarch
+buildarch_compat: aarch64: noarch
+
buildarch_compat: athlon: i686
buildarch_compat: geode: i586
buildarch_compat: pentium4: pentium3