From 42ed8f82e72f278b030d226961d218d45c4a8d48 Mon Sep 17 00:00:00 2001 From: Leonamier Date: Wed, 10 Feb 2021 02:28:20 +0000 Subject: [PATCH] add yaffs2.spec Signed-off-by: Leonamier --- yaffs2.spec | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 yaffs2.spec diff --git a/yaffs2.spec b/yaffs2.spec new file mode 100644 index 0000000..1693e66 --- /dev/null +++ b/yaffs2.spec @@ -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 - b4celbb-1 +- init -- Gitee