fixup compile error

Signed-off-by: beiling.xie <xiekunxun@huawei.com>
(cherry picked from commit 794226cb736736ddb8f35202d1f7a304a6bb7dad)
This commit is contained in:
beiling.xie 2022-11-02 14:50:25 +08:00 committed by openeuler-sync-bot
parent d6bc573e05
commit f88e0d8f65

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