Skip to content

Commit

Permalink
blis: Enable aarch64 builds (#23515)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmartinez82 authored Feb 26, 2025
1 parent 2801597 commit 320c61e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
12 changes: 12 additions & 0 deletions mingw-w64-blis/001-disable-armsve.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -bur blis-1.1-orig/config_registry blis-1.1/config_registry
--- blis-1.1-orig/config_registry 2025-02-25 16:33:34 -0700
+++ blis-1.1/config_registry 2025-02-25 16:33:40 -0700
@@ -12,7 +12,7 @@
intel64: skx knl haswell sandybridge penryn generic
amd64_legacy: excavator steamroller piledriver bulldozer generic
amd64: zen3 zen2 zen generic
-arm64: armsve firestorm thunderx2 cortexa57 cortexa53 generic
+arm64: firestorm thunderx2 cortexa57 cortexa53 generic
arm32: cortexa15 cortexa9 generic
power: power10 power9 generic

22 changes: 16 additions & 6 deletions mingw-w64-blis/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ _realname=blis
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.1
pkgrel=1
pkgrel=2
pkgdesc="BLAS-like Library Instantiation Software Framework. (mingw-w64)"
arch=('any')
mingw_arch=('ucrt64' 'clang64')
mingw_arch=('ucrt64' 'clang64' 'clangarm64')
url='https://github.com/flame/blis'
license=('spdx:BSD-3-Clause')
conflicts=("${MINGW_PACKAGE_PREFIX}-cblas")
Expand All @@ -17,14 +17,24 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-python")
source=("https://github.com/flame/blis/archive/${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('847c035809b8994c077ade737a4813601db96c4cf0d903d08ba6a9b8ee0fe03e')
source=("https://github.com/flame/blis/archive/${pkgver}/${_realname}-${pkgver}.tar.gz"
"001-disable-armsve.patch")
sha256sums=('847c035809b8994c077ade737a4813601db96c4cf0d903d08ba6a9b8ee0fe03e'
'd77cbcf26d7abae0af7dd8b1ffa433f2717e458fc64edb4fc67968f8735245a2')

apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying ${_patch}"
patch -Nbp1 --binary -i "${srcdir}/${_patch}"
done
}

prepare() {
cd "${_realname}-${pkgver}"

# patch -Np1 -i "${srcdir}"/0001-A-really-important-fix.patch
# patch -Np1 -i "${srcdir}"/0002-A-less-important-fix.patch
apply_patch_with_msg \
001-disable-armsve.patch
}

build() {
Expand Down

0 comments on commit 320c61e

Please sign in to comment.