From d009987c64947a1c1634e66afa879ede45a40865 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 26 Sep 2021 12:58:12 +0300 Subject: [PATCH] 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 --- libs/openblas/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/openblas/Makefile b/libs/openblas/Makefile index c3228d14e..2faf6998e 100644 --- a/libs/openblas/Makefile +++ b/libs/openblas/Makefile @@ -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