[openblas] 01/04: Enable build on arm64 architecture.

Sébastien Villemot sebastien at debian.org
Wed Apr 29 16:27:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository openblas.

commit 4d75869ee7f1f43b27c4f168402fa17a16ea19be
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Wed Apr 29 17:56:28 2015 +0200

    Enable build on arm64 architecture.
    
    + d/control: add arm64 to Architecture fields.
    + d/rules: use TARGET=ARMV8 for arm64 arch.
    + d/p/arm64.patch: new patch from upstream, to fix a build failure.
    
    Git-Dch: Full
---
 debian/control             |  6 +++---
 debian/patches/arm64.patch | 15 +++++++++++++++
 debian/patches/series      |  1 +
 debian/rules               |  4 ++++
 4 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 2785f6a..9c2bbf0 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/openbla
 
 Package: libopenblas-base
 Section: libs
-Architecture: amd64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
+Architecture: amd64 arm64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
 Depends: ${shlibs:Depends}, ${misc:Depends}, libblas-common
 Provides: libblas.so.3, liblapack.so.3
 Replaces: libblas3gf (<< 1.2.20110419-3), libatlas3gf-base (<< 3.8.4-4)
@@ -31,7 +31,7 @@ Description: Optimized BLAS (linear algebra) library (shared library)
 
 Package: libopenblas-dev
 Section: libdevel
-Architecture: amd64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
+Architecture: amd64 arm64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
 Depends: libopenblas-base (= ${binary:Version}), libblas-dev, ${shlibs:Depends},
  ${misc:Depends}
 Provides: libblas.so, liblapack.so
@@ -50,7 +50,7 @@ Description: Optimized BLAS (linear algebra) library (development files)
 Package: libopenblas-dbg
 Section: debug
 Priority: extra
-Architecture: amd64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
+Architecture: amd64 arm64 armhf i386 powerpc ppc64 kfreebsd-i386 kfreebsd-amd64
 Depends: libopenblas-base (= ${binary:Version}), ${misc:Depends}
 Built-Using: ${Built-Using}
 Description: Optimized BLAS (linear algebra) library (debugging symbols)
diff --git a/debian/patches/arm64.patch b/debian/patches/arm64.patch
new file mode 100644
index 0000000..326f28d
--- /dev/null
+++ b/debian/patches/arm64.patch
@@ -0,0 +1,15 @@
+Description: Fix bug in build system for arm64
+Origin: upstream, https://github.com/xianyi/OpenBLAS/commit/e5b96e55a727bee4010a2ae4c96c6f71327ba96b
+Applied-Upstream: 0.2.15
+Reviewed-by: Sébastien Villemot <sebastien at debian.org>
+Last-Update: 2015-04-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/kernel/arm64/KERNEL.XGENE1 b/kernel/arm64/KERNEL.XGENE1
+new file mode 100644
+index 0000000..6ee0c73
+--- /dev/null
++++ b/kernel/arm64/KERNEL.XGENE1
+@@ -0,0 +1 @@
++include $(KERNELDIR)/KERNEL.ARMV8
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
index b38443c..bc3f3d5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ test-custom-package.patch
 remove-openmp-warning.patch
 no-embedded-lapack.patch
 shared-blas-lapack.patch
+arm64.patch
diff --git a/debian/rules b/debian/rules
index 2ca001f..14665e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,10 @@ ifeq ($(DEB_HOST_ARCH),armhf)
 	GENERIC_OPTIONS += TARGET=ARMV6
 endif
 
+ifeq ($(DEB_HOST_ARCH),arm64)
+	GENERIC_OPTIONS += TARGET=ARMV8
+endif
+
 # There is no dynamic arch selection on PowerPC. To avoid selecting a
 # target based on the buildd hardware, we enforce a generic-enough
 # target.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openblas.git



More information about the debian-science-commits mailing list