!74 [sync] PR-70: add sw support

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2025-03-04 06:59:12 +00:00 committed by Gitee
commit 92b65d6ec8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 12658 additions and 2 deletions

12647
add-sw-support.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
Name: luajit
Version: 2.1.0
Release: 10
Release: 11
Summary: Just-In-Time Compiler for Lua
License: MIT
URL: http://luajit.org/
@ -17,7 +17,8 @@ Source3: apply-patches
Patch0001: luajit-2.1-d06beb0-update.patch
Patch0002: 0002-luajit-add-secure-compile-option-fstack.patch
Patch0003: add-riscv-support.patch
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 riscv64 loongarch64
Patch0004: add-sw-support.patch
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 riscv64 loongarch64 sw_64
BuildRequires: gcc
BuildRequires: make
@ -49,6 +50,11 @@ Man pages and other related documents for luajit.
%patch -P0003 -p1
%endif
# sw64 arch patch
%ifarch sw_64
%patch -P0004 -p1
%endif
%ifarch loongarch64
cp %{SOURCE1} .
cp %{SOURCE2} .
@ -94,6 +100,9 @@ cp -a doc _tmp_html/html
%{_mandir}/man1/%{name}.1*
%changelog
* Fri Feb 28 2025 maqi <maqi@uniontech.com> - 2.1.0-11
- Add sw64 support
* Tue Feb 18 2025 zhaoxiaolin <zhaoxiaolin@loongson.cn> - 2.1.0-10
- optimize code and fix some bugs on loongarch64