!5 修复yaffs2在OBS上的编译错误

From: @beilingxie 
Reviewed-by: @vonhust 
Signed-off-by: @vonhust
This commit is contained in:
openeuler-ci-bot 2022-11-02 08:00:03 +00:00 committed by Gitee
commit 4d9d021b68
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,11 +1,11 @@
Name: yaffs2
Version:b4celbb
Version:b4ce1bb
Release:1
Summary:an open-source file system for embedded use with NAND and Nor Flash.
License:GPLv2
URL: http://www.alephl.co.uk/gitweb/?p=yaffs2.git;a=summary
Source0:http://www.aleohl.co.uk/gitweb/?p=yaffs2.git;a=snapshot;h=%{version};sf=tgz
Source0:%{name}-%{version}.tar.gz
BuildRequires: gcc kernel-devel make module-init-tools glibc
Requires:kernel
@ -16,21 +16,9 @@ robust and suitable for embedded use with NAND and NOR Flash.
It is widely used with Linux, RTOSs, or no OS at all, in consumer
devices, avionics, or on commercial terms from Aleph one.
%prep
%setup
%build
%make_build
%install
mkdir -p %{buildroot}/lib/modules/%{kern_ver}/
cp %{buildroot}/yaffs2-b4celbb/yaffs2multi.ko %{buildroot}/lib/modules/%{kern_ver}/
install -d %{buildroot}/etc/modules-load.d/ %{buildroot}/etc/modprobe.d/
%files
%defattr(-,-,-,-)
/lib/modules/%{kern_ver}/yaffs2multi.ko
%changelog
* Wed Nov 2 2022 beiling.xie <xiekunxun@huawei.com> - b4ce1bb-1
* Tue Feb 9 2021 tangchenyang <tangchenyang2@huawei.com> - b4celbb-1
- init