diff --git a/README.md b/README.md index 2ce63d2a97f732d8f4a27761552a491a5ae8878f..5975f80d93cf2dde61caa17dc274c8c0f67e92f4 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,19 @@ TIPC is a cluster domain socket as a linux module. Enhanced tipc(etipc) enhances the multicast, dfx. #### 软件架构 -软件架构说明 +etipc-1.7.7.zip是仓库https://gitee.com/openeuler/etipc 的源码打包结果; +源码经过编译后得到tipc.ko的内核模块;当前支持Linux 5.10和6.6内核 -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx +etipc.spec文件是用于描述rpm包的文件,当前rpm包中打包了 +1. tipc.ko: 内核模块 +2. tipc_config: 用于配置tipc, 增强版本的DFX功能 +3. recv\msend\usend: 增强的tipc测试用的二进制,测试单播、广播的tipc通信 #### 使用说明 -1. xxxx -2. xxxx -3. xxxx +1. 请参考[openEuler官方的构建rpm包](https://gitee.com/openeuler/docs/blob/master/docs/zh/docs/ApplicationDev/%E6%9E%84%E5%BB%BARPM%E5%8C%85.md)完成构建 +2. 下载该rpm包后, 可使用rpm2cpio xxx.rpm | cpio -div解压到本地; 或者rpm -ivh xxx.rpm安装, 上述文件都会按照到lib目录 #### 参与贡献 diff --git a/etipc-1.7.7.zip b/etipc-1.7.7.zip new file mode 100644 index 0000000000000000000000000000000000000000..28b054f75d09aee511fd8bf9a8e5a74e7b7c2621 Binary files /dev/null and b/etipc-1.7.7.zip differ diff --git a/etipc.spec b/etipc.spec new file mode 100644 index 0000000000000000000000000000000000000000..44240919842aaf553f685ae79dbb0629564d6d20 --- /dev/null +++ b/etipc.spec @@ -0,0 +1,48 @@ +%global debug_package %{nil} +%global __os_install_post %{nil} + +Name: etipc +Summary: ETIPC is an enhanced tipcfor the embedding products by Huawei +Version: 1.7.7 +Release: 2 +License: GPLv2 +URL: https://gitee.com/chengjunjia/etipc +Source0: https://gitee.com/chengjunjia/etipc/raw/openEuler-24.03-LTS/%{name}-%{version}.zip + +BuildRequires: gcc kernel-devel kernel-headers kernel glibc glibc-devel glib2-devel cmake rpm +# Requires : kmod + +ExclusiveArch: x86_64 aarch64 loongarch64 sw_64 riscv64 ppc64le + +%define kernel %(ver=`rpm -qa|grep kernel-devel`;echo ${ver#*kernel-devel-}) + +%description +ETIPC is an enhanced tipcfor the embedding products by Huawei. +The original version of tipc is in the Linux Kernel from Ericsson. + +%prep +%autosetup -n etipc-%{version} + +%build +cd %{_builddir}/%{name}-%{version} +%make_build KERNEL_DIR=/usr/src/kernels/%{kernel} + +%install +cd %{_builddir}/%{name}-%{version} +%make_install KERNEL_DIR=/usr/src/kernels/%{kernel} INSTALL_LIB=%{buildroot}%{_libdir} INCLUDE_PATH=%{buildroot}%{_includedir} + +%files +%defattr(0644,root,root) +%{_libdir}/recv +%{_libdir}/msend +%{_libdir}/usend +%{_libdir}/tipc_config +%{_libdir}/tipc.ko +%{_includedir} + +%changelog +* Sat Sep 14 2024 chengjunjia - 1.7.7-2 +- Update Release to make sure CI bot is OK + +* Fri Sep 13 2024 chengjunjia - 1.7.7-1 +- Init package \ No newline at end of file