libs: openblas: patch openblas to handle mips{64}el arch names
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 26 Sep 2021 09:28:06 +0000 (12:28 +0300)
committerRosen Penev <rosenp@gmail.com>
Mon, 27 Sep 2021 01:08:20 +0000 (18:08 -0700)
Related to PR: https://github.com/xianyi/OpenBLAS/pull/3387

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
libs/openblas/patches/001-adjust-mips-el-arch.patch [new file with mode: 0644]

diff --git a/libs/openblas/patches/001-adjust-mips-el-arch.patch b/libs/openblas/patches/001-adjust-mips-el-arch.patch
new file mode 100644 (file)
index 0000000..62e736e
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/Makefile.system
++++ b/Makefile.system
+@@ -33,6 +33,10 @@ else ifeq ($(ARCH), armv7)
+ override ARCH=arm
+ else ifeq ($(ARCH), aarch64)
+ override ARCH=arm64
++else ifeq ($(ARCH), mipsel)
++override ARCH=mips
++else ifeq ($(ARCH), mips64el)
++override ARCH=mips64
+ else ifeq ($(ARCH), zarch)
+ override ARCH=zarch
+ endif