libs: openblas: use GENERIC target for MIPS64 archs and as default
authorAlexandru Ardelean <redacted>
Sun, 26 Sep 2021 09:24:38 +0000 (12:24 +0300)
committerRosen Penev <redacted>
Mon, 27 Sep 2021 01:08:20 +0000 (18:08 -0700)
The GENERIC target for OpenBLAS seems good enough for most configs, so try
to use it for MIPS64 and as default for other archs.
This was already being used for x86{_64} archs.

Signed-off-by: Alexandru Ardelean <redacted>
libs/openblas/Makefile

index 1bc6d81770daae151937478ee4af30571f9883d7..c3228d14e989119c101dd8f3c207c74a328b581a 100644 (file)
@@ -49,6 +49,9 @@ endef
 OPENBLAS_TARGET=$(call qstrip,$(CONFIG_OPENBLAS_TARGET_OVERRIDE))
 
 ifeq ($(OPENBLAS_TARGET),)
+# initialize to GENERIC as default
+OPENBLAS_TARGET:=GENERIC
+
 ifeq ($(ARCH),aarch64)
   OPENBLAS_TARGET:=ARMV8
 else ifeq ($(ARCH),arm)
@@ -59,14 +62,6 @@ else ifeq ($(ARCH),mipsel)
   OPENBLAS_TARGET:=MIPS24K
 else ifeq ($(ARCH),powerpc)
   OPENBLAS_TARGET:=PPC440
-else ifeq ($(ARCH),mips64)
-  OPENBLAS_TARGET:=I6400
-else ifeq ($(ARCH),mips64el)
-  OPENBLAS_TARGET:=I6400
-else ifeq ($(ARCH),i386)
-  OPENBLAS_TARGET:=GENERIC
-else ifeq ($(ARCH),x86_64)
-  OPENBLAS_TARGET:=GENERIC
 endif
 endif # ifeq ($(OPENBLAS_TARGET),)
 
git clone https://git.99rst.org/PROJECT