From 2140635ef45b2eeb5de3cedc032b8698d8ccc276 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 21 Nov 2023 12:39:48 +0000 Subject: [PATCH] add loongarch64 support for tongsuo --- ...-add-loongarch64-support-for-tongsuo.patch | 41 +++++++++++++++++++ tongsuo.spec | 6 ++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 0001-add-loongarch64-support-for-tongsuo.patch diff --git a/0001-add-loongarch64-support-for-tongsuo.patch b/0001-add-loongarch64-support-for-tongsuo.patch new file mode 100644 index 0000000..90c31a9 --- /dev/null +++ b/0001-add-loongarch64-support-for-tongsuo.patch @@ -0,0 +1,41 @@ +From 199cc9924e99e55551679f231d23e46030a31406 Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Tue, 21 Nov 2023 12:35:29 +0000 +Subject: [PATCH] add loongarch64 support for tongsuo + +--- + Configurations/10-main.conf | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf +index 38c8eb31..ced81165 100644 +--- a/Configurations/10-main.conf ++++ b/Configurations/10-main.conf +@@ -761,6 +761,11 @@ my %targets = ( + perlasm_scheme => "linux64", + }, + ++ "linux-loongarch64" => { ++ inherit_from => [ "linux-generic64"], ++ perlasm_scheme => "linux64", ++ }, ++ + #### IA-32 targets... + #### These two targets are a bit aged and are to be used on older Linux + #### machines where gcc doesn't understand -m32 and -m64 +@@ -995,6 +1000,12 @@ my %targets = ( + perlasm_scheme => "linux64", + }, + ++ "BSD-loongarch64" => { ++ inherit_from => [ "BSD-generic64"], ++ perlasm_scheme => "linux64", ++ }, ++ ++ + "bsdi-elf-gcc" => { + inherit_from => [ "BASE_unix", asm("x86_elf_asm") ], + CC => "gcc", +-- +2.41.0 + diff --git a/tongsuo.spec b/tongsuo.spec index 619fcd8..ae98d0e 100644 --- a/tongsuo.spec +++ b/tongsuo.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %define install_prefix /opt/tongsuo @@ -20,6 +20,7 @@ Group: System Environment/Libraries License: Apache-2.0 Url: https://www.yuque.com/tsdoc Source0: https://github.com/Tongsuo-Project/Tongsuo/archive/refs/tags/Tongsuo-%{version}.tar.gz +Patch001: 0001-add-loongarch64-support-for-tongsuo.patch # For build BuildRequires: perl(Config) @@ -85,6 +86,9 @@ export QA_RPATHS=$(( 0x0002 )) %dir %{install_prefix} %changelog +* Tue Nov 21 2023 Wenlong Zhang - 8.3.3-2 +- add loongarch64 support for tongsuo + * Mon Aug 28 2023 Tianjia Zhang - 8.3.3-1 - Introduce v8.3.3 -- Gitee