代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/hmdfs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%define hmdfs_dest_path /usr/lib/modules/%(rpm -aq kernel-devel | cut -d "-" -f 3,4)/hmdfs
Name: hmdfs
Version: 1.0.0
Release: 1%{?dist}
Summary: HMDFS is an overlay file system.
License: Apache License 2.0
URL: https://gitee.com/openharmony/kernel_linux_5.10/tree/OpenHarmony-3.2-Release/fs/hmdfs
Source0: https://gitee.com/src-openeuler/hmdfs/%{name}-%{version}.tar.gz
Patch0: 0001-add-makefile-used-on-openeuler.patch
Patch1: 0002-bugfix-null-pointer-in-memcpy.patch
BuildRequires: gcc, make, kernel-devel
%description
HMDFS is an overlay file system. Relying on the underlying file system, under the premise of networking, file exchanges across devices can be realized.
# Decompress source code package, make patches to the source code.
%prep
%setup -c
%patch0 -p1
%patch1 -p1
# make.
%build
make %{?_smp_mflags}
# install hmdfs's ko file to a certain path.
%install
install -d $RPM_BUILD_ROOT/%{hmdfs_dest_path}/
install -v %{name}.ko $RPM_BUILD_ROOT/%{hmdfs_dest_path}/
# copy ko file to the certain path on deployment environment.
%files
/%{hmdfs_dest_path}/*.ko
%changelog
* Thu Apr 27 2023 hepeng <hepeng68@huawei.com> - 1.0.0-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。