openblas: fix compilation with mips x4k series CPU
authorEneas U de Queiroz <redacted>
Wed, 6 Oct 2021 15:06:32 +0000 (12:06 -0300)
committerEneas U de Queiroz <redacted>
Wed, 6 Oct 2021 18:29:47 +0000 (15:29 -0300)
Anything later than MIPS 24k can run MIPS 24k code.  Set OPENBLAS_TARGET
to MIPS24K in those cases.

Signed-off-by: Eneas U de Queiroz <redacted>
libs/openblas/Makefile

index 9ad78b37f5def611317db5a8d19a1c03c17c5718..bc28e79f68d615bd76ee2abd154fc37ad41b90f1 100644 (file)
@@ -58,13 +58,13 @@ ifeq ($(ARCH),aarch64)
 else ifeq ($(ARCH),arm)
   OPENBLAS_TARGET:=ARMV5
 else ifeq ($(ARCH),mips)
-  ifeq ($(CPU_TYPE),24kc)
+  ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
     OPENBLAS_TARGET:=MIPS24K
-  endif # CPU_TYPE == 24kc
+  endif # CPU_TYPE == 24k* or 74k*
 else ifeq ($(ARCH),mipsel)
-  ifeq ($(CPU_TYPE),24kc)
+  ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
     OPENBLAS_TARGET:=MIPS24K
-  endif # CPU_TYPE == 24kc
+  endif # CPU_TYPE == 24k* or 74k*
 else ifeq ($(ARCH),powerpc)
   OPENBLAS_TARGET:=PPC440
 endif
git clone https://git.99rst.org/PROJECT