Browse Source

openblas: fix compilation with mips x4k series CPU

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 <cotequeiroz@gmail.com>
lilik-openwrt-22.03
Eneas U de Queiroz 3 years ago
parent
commit
7ff29af4fd
No known key found for this signature in database GPG Key ID: 5FB9FAF260B80AEA
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libs/openblas/Makefile

+ 4
- 4
libs/openblas/Makefile View File

@ -58,13 +58,13 @@ ifeq ($(ARCH),aarch64)
else ifeq ($(ARCH),arm) else ifeq ($(ARCH),arm)
OPENBLAS_TARGET:=ARMV5 OPENBLAS_TARGET:=ARMV5
else ifeq ($(ARCH),mips) else ifeq ($(ARCH),mips)
ifeq ($(CPU_TYPE),24kc)
ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
OPENBLAS_TARGET:=MIPS24K OPENBLAS_TARGET:=MIPS24K
endif # CPU_TYPE == 24kc
endif # CPU_TYPE == 24k* or 74k*
else ifeq ($(ARCH),mipsel) else ifeq ($(ARCH),mipsel)
ifeq ($(CPU_TYPE),24kc)
ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
OPENBLAS_TARGET:=MIPS24K OPENBLAS_TARGET:=MIPS24K
endif # CPU_TYPE == 24kc
endif # CPU_TYPE == 24k* or 74k*
else ifeq ($(ARCH),powerpc) else ifeq ($(ARCH),powerpc)
OPENBLAS_TARGET:=PPC440 OPENBLAS_TARGET:=PPC440
endif endif


Loading…
Cancel
Save