Skip to content

Commit

Permalink
Add aarch64 support.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Girko <oleg.girko@jolla.com>
  • Loading branch information
Oleg Girko committed Jan 23, 2014
1 parent 5f65ced commit a42328a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions coreutils-aarch64.patch
@@ -0,0 +1,19 @@
diff -urN coreutils-8.15/build-aux/config.sub coreutils-8.15-aarch64/build-aux/config.sub
--- coreutils-8.15/build-aux/config.sub 2012-01-06 00:20:50.000000000 -0700
+++ coreutils-8.15-aarch64/build-aux/config.sub 2012-10-08 17:36:50.577947070 -0600
@@ -247,6 +247,7 @@
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
+ | aarch64 | aarch64_be \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
@@ -355,6 +356,7 @@
# Recognize the basic CPU types with company name.
580-* \
| a29k-* \
+ | aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
4 changes: 4 additions & 0 deletions coreutils.spec
Expand Up @@ -42,6 +42,7 @@ Patch915: coreutils-split-pam.patch
Patch916: coreutils-getfacl-exit-code.patch

Patch1001: mktemp-1.5-build.patch
Patch1002: coreutils-aarch64.patch

BuildRequires: libacl-devel
BuildRequires: gettext bison
Expand Down Expand Up @@ -102,6 +103,7 @@ the old GNU fileutils, sh-utils, and textutils packages.
%patch912 -p1 -b .overflow
%patch915 -p1 -b .splitl
%patch916 -p1 -b .getfacl-exit-code
%patch1002 -p1

# Don't run basic-1 test, since it breaks when run in the background
# (bug #102033).
Expand All @@ -111,6 +113,8 @@ chmod a+x tests/sort/sort-mb-tests
chmod a+x tests/ls/x-option

%build
cp build-aux/config.sub ../mktemp-1.5

pushd ../mktemp-1.5
patch -p1 < %{PATCH1001}
%configure
Expand Down

0 comments on commit a42328a

Please sign in to comment.