diff --git a/0001-add-loongarch64-support.patch b/0001-add-loongarch64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..379d84fbe538813bf36fdbd4cfb89c6f491dcf91 --- /dev/null +++ b/0001-add-loongarch64-support.patch @@ -0,0 +1,38 @@ +From d21abf4729231490c1cf2eb76b281d81d99cef79 Mon Sep 17 00:00:00 2001 +From: Hailiang +Date: Wed, 17 Aug 2022 17:47:42 +0800 +Subject: [PATCH] add loongarch64 support + +--- + build/ck.build.loongarch64 | 1 + + configure | 6 ++++++ + 2 files changed, 7 insertions(+) + create mode 100644 build/ck.build.loongarch64 + +diff --git a/build/ck.build.loongarch64 b/build/ck.build.loongarch64 +new file mode 100644 +index 0000000..8b13789 +--- /dev/null ++++ b/build/ck.build.loongarch64 +@@ -0,0 +1 @@ ++ +diff --git a/configure b/configure +index e840d41..bbdacab 100755 +--- a/configure ++++ b/configure +@@ -482,6 +482,12 @@ case $PLATFORM in + PLATFORM=aarch64 + ENVIRONMENT=64 + ;; ++ "loongarch64") ++ RTM_ENABLE="CK_MD_RTM_DISABLE" ++ LSE_ENABLE="CK_MD_LSE_DISABLE" ++ PLATFORM=loongarch64 ++ MM="${MM:-"CK_MD_RMO"}" ++ ;; + *) + RTM_ENABLE="CK_MD_RTM_DISABLE" + LSE_ENABLE="CK_MD_LSE_DISABLE" +-- +2.27.0 + diff --git a/ck.spec b/ck.spec index 0f91b11d5c87d26fee8bc7206d040f4fd44419e9..2b8060e725446112c678c9ef5a5048acac450f94 100644 --- a/ck.spec +++ b/ck.spec @@ -1,10 +1,11 @@ Name: ck Version: 0.6.0 -Release: 2 +Release: 3 Summary: Concurrency programming lib License: BSD URL: http://concurrencykit.org/ Source0: http://concurrencykit.org/releases/%{name}-%{version}.tar.gz +Patch0: 0001-add-loongarch64-support.patch BuildRequires: gcc autoconf automake @@ -22,6 +23,7 @@ Concurrency primitives, safe memory reclamation mechanisms and non-blocking data %prep %setup -q -n %{name}-%{version}/ +%patch0 -p1 %build export CFLAGS="${RPM_OPT_FLAGS}" @@ -53,6 +55,9 @@ rm %{buildroot}%{_libdir}/libck.a %ldconfig_scriptlets %changelog +* Wed Aug 17 2022 mahailiang - 0.6.0-3 +- add loongarch64 support + * Tue Sep 07 2021 lingsheng - 0.6.0-2 - Set CFLAGS to build debug related rpm