!1 add yaffs2.spec

Merge pull request !1 from Leonamier/yaffs
This commit is contained in:
openeuler-ci-bot 2022-01-24 10:55:15 +00:00 committed by Gitee
commit 5bda8fa620
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

36
yaffs2.spec Normal file
View File

@ -0,0 +1,36 @@
Name: yaffs2
Version:b4celbb
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
BuildRequires: gcc kernel-devel make module-init-tools glibc
Requires:kernel
%description
Yaffs is an open-source file system specifically designed to be fast,
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
* Tue Feb 9 2021 tangchenyang <tangchenyang2@huawei.com> - b4celbb-1
- init