Browse Source

Merge pull request #16823 from cotequeiroz/openblas-mips

openblas: fix compilation with mips x4k series CPU
lilik-openwrt-22.03
Alexandru Ardelean 3 years ago
committed by GitHub
parent
commit
0dd482ff5b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      libs/openblas/Makefile

+ 5
- 4
libs/openblas/Makefile View File

@ -58,13 +58,13 @@ ifeq ($(ARCH),aarch64)
else ifeq ($(ARCH),arm)
OPENBLAS_TARGET:=ARMV5
else ifeq ($(ARCH),mips)
ifeq ($(CPU_TYPE),24kc)
ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
OPENBLAS_TARGET:=MIPS24K
endif # CPU_TYPE == 24kc
endif # CPU_TYPE == 24k* or 74k*
else ifeq ($(ARCH),mipsel)
ifeq ($(CPU_TYPE),24kc)
ifneq ($(filter 24k% 74k%,$(CPU_TYPE)),)
OPENBLAS_TARGET:=MIPS24K
endif # CPU_TYPE == 24kc
endif # CPU_TYPE == 24k* or 74k*
else ifeq ($(ARCH),powerpc)
OPENBLAS_TARGET:=PPC440
endif
@ -81,6 +81,7 @@ MAKE_FLAGS += \
HOSTCC=$(HOSTCC_NOCACHE) \
CROSS_SUFFIX=$(TARGET_CROSS) \
BINARY=$(OPENBLAS_BINARY) \
MAKE_NB_JOBS=-1 \
NUM_THREADS=2 \
PREFIX=/usr \
COMMON_OPT="" \


Loading…
Cancel
Save