From 7ff29af4fd6207b56ae0697775ee468399a76afa Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 6 Oct 2021 12:06:32 -0300 Subject: [PATCH 1/2] 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 --- libs/openblas/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/openblas/Makefile b/libs/openblas/Makefile index 9ad78b37f..bc28e79f6 100644 --- a/libs/openblas/Makefile +++ b/libs/openblas/Makefile @@ -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 From bf99bfbadb22d6a60c8699f48af1521b956c35e6 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 6 Oct 2021 16:26:23 -0300 Subject: [PATCH 2/2] openblas: avoid using make -j when building Set MAKE_NB_JOBS=-1 so that no -j parameter is passed to make when building the package, honoring the parent make's setting. Signed-off-by: Eneas U de Queiroz --- libs/openblas/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/openblas/Makefile b/libs/openblas/Makefile index bc28e79f6..86c507900 100644 --- a/libs/openblas/Makefile +++ b/libs/openblas/Makefile @@ -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="" \