libs: openblas: use GENERIC for MIPS{EL} and MIPS24K for CPU_TYPE == 24kc
authorAlexandru Ardelean <redacted>
Sun, 26 Sep 2021 09:58:12 +0000 (12:58 +0300)
committerRosen Penev <redacted>
Mon, 27 Sep 2021 01:08:20 +0000 (18:08 -0700)
Up until now, we were defaulting to MIPS24K for all MIPS archs.
But, we should use the GENERIC target for MIPS{EL} and the MIPS24K target
for the 24kc CPU_TYPE.

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

index c3228d14e989119c101dd8f3c207c74a328b581a..2faf6998e684c3c9e48d9a29010e7f7afa732e37 100644 (file)
@@ -47,6 +47,7 @@ endmenu
 endef
 
 OPENBLAS_TARGET=$(call qstrip,$(CONFIG_OPENBLAS_TARGET_OVERRIDE))
+CPU_TYPE=$(call qstrip,$(CONFIG_CPU_TYPE))
 
 ifeq ($(OPENBLAS_TARGET),)
 # initialize to GENERIC as default
@@ -57,9 +58,13 @@ ifeq ($(ARCH),aarch64)
 else ifeq ($(ARCH),arm)
   OPENBLAS_TARGET:=ARMV5
 else ifeq ($(ARCH),mips)
-  OPENBLAS_TARGET:=MIPS24K
+  ifeq ($(CPU_TYPE),24kc)
+    OPENBLAS_TARGET:=MIPS24K
+  endif # CPU_TYPE == 24kc
 else ifeq ($(ARCH),mipsel)
-  OPENBLAS_TARGET:=MIPS24K
+  ifeq ($(CPU_TYPE),24kc)
+    OPENBLAS_TARGET:=MIPS24K
+  endif # CPU_TYPE == 24kc
 else ifeq ($(ARCH),powerpc)
   OPENBLAS_TARGET:=PPC440
 endif
git clone https://git.99rst.org/PROJECT