From 9b94996370266fd81552fe6bf656f34aedda54bf Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 26 Sep 2021 12:24:38 +0300 Subject: [PATCH] libs: openblas: use GENERIC target for MIPS64 archs and as default 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 --- libs/openblas/Makefile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libs/openblas/Makefile b/libs/openblas/Makefile index 1bc6d8177..c3228d14e 100644 --- a/libs/openblas/Makefile +++ b/libs/openblas/Makefile @@ -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),)