add riscv64 support

This commit is contained in:
laokz 2023-06-02 22:53:09 +08:00 committed by laokz
parent ac84dfdb3b
commit 298b4435e5
2 changed files with 38 additions and 3 deletions

24
add-riscv-support.patch Normal file

File diff suppressed because one or more lines are too long

View File

@ -7,19 +7,23 @@
Name: lib-shim-v2
Version: 0.0.1
Release: 5
Release: 6
URL: https://gitee.com/openeuler/lib-shim-v2
Source: https://gitee.com/openeuler/%{name}/archive/refs/tags/v%{version}.tar.gz
Patch0: add-riscv-support.patch
Summary: lib-shim-v2 is shim v2 ttrpc client which is called by iSulad.
Group: Application/System
License: Mulan PSL v2
ExclusiveArch: x86_64 aarch64
ExclusiveArch: x86_64 aarch64 riscv64
BuildRequires: rust
BuildRequires: cargo
BuildRequires: rust-packaging
BuildRequires: gcc git
%ifarch riscv64
BuildRequires: protobuf-compiler
%endif
%description
Based on Rust programming language, as a shim v2 ttrpc client, it is called by iSulad.
@ -27,7 +31,7 @@ Based on Rust programming language, as a shim v2 ttrpc client, it is called by i
%package devel
Summary: shim v2 ttrpc client
Group: Libraries
ExclusiveArch: x86_64 aarch64
ExclusiveArch: x86_64 aarch64 riscv64
Requires: %{name} = %{version}-%{release}
%description devel
@ -59,6 +63,13 @@ install -m 0755 target/release/libshim_v2.so ${RPM_BUILD_ROOT}/%{_libdir}/libshi
%{_includedir}/shim_v2.h
%changelog
* Mon Jun 05 2023 laokz <zhangkai@iscas.ac.cn> - 0.0.1-6
- Type:Enhancement
- ID:NA
- SUG:NA
- DESC: Add riscv64 support. Patches are from nix v0.17.0 and v0.18.0.
Add protobuf-compiler to avoid patching big binary for prost-build.
* Mon Nov 21 2022 wujing <wujing50@huawei.com> - 0.0.1-5
- Type:NA
- ID:NA