From aaef6f44271a8c0654a14c7b288daa696b6c454a Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Tue, 14 Nov 2023 04:04:07 -0500 Subject: [PATCH 1/2] add riscv64 support --- openblas.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/openblas.spec b/openblas.spec index 9cf7955..3724fca 100644 --- a/openblas.spec +++ b/openblas.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 %bcond_with system_lapack %global lapackver 3.9.1 @@ -308,6 +308,8 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" %endif %ifarch loongarch64 TARGET="TARGET=LOONGSONGENERIC DYNAMIC_ARCH=1" +%ifarch riscv64 +TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0" %endif COMMON="%{optflags} -fPIC" @@ -351,6 +353,9 @@ cp -a %{_includedir}/lapacke %{buildroot}%{_includedir}/%{name} %endif suffix="" +%ifarch riscv64 +suffix="_riscv64_generic" +%endif slibname=`basename %{buildroot}%{_libdir}/libopenblas${suffix}-*.so .so` mv %{buildroot}%{_libdir}/${slibname}.a %{buildroot}%{_libdir}/lib%{name}.a if [[ "$suffix" != "" ]]; then @@ -527,6 +532,9 @@ rm -rf %{buildroot}%{_libdir}/pkgconfig %endif %changelog +* Thu Nov 02 2023 U2FsdGVkX1 - 0.3.23-4 +- Add RISC-V 64 support + * Wed Nov 8 2023 XiWei Gu - 0.3.23-3 - Enable DYNAMIC_ARCH for LoongArch64 -- Gitee From 509a6e09a9bac22d158701966e9607978280b67f Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Wed, 15 Nov 2023 03:29:22 +0000 Subject: [PATCH 2/2] fix unclosed %if Signed-off-by: U2FsdGVkX1 --- openblas.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/openblas.spec b/openblas.spec index 3724fca..93b64fe 100644 --- a/openblas.spec +++ b/openblas.spec @@ -308,6 +308,7 @@ TARGET="TARGET=ARMV8 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1" %endif %ifarch loongarch64 TARGET="TARGET=LOONGSONGENERIC DYNAMIC_ARCH=1" +%endif %ifarch riscv64 TARGET="TARGET=RISCV64_GENERIC DYNAMIC_ARCH=0" %endif -- Gitee