libs: openblas: use GENERIC for MIPS{EL} and MIPS24K for CPU_TYPE == 24kc
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 <ardeleanalex@gmail.com>
This commit is contained in:
parent
4c5a05cd63
commit
d009987c64
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue