prefetch_tuning/prefetch_tuning.spec

55 lines
1.3 KiB
RPMSpec
Raw Normal View History

%define kmod_name prefetch_tuning
2019-11-19 11:53:09 +08:00
Name : prefetch_tuning
Summary : CPU prefetch tuning module for Kunpeng 920
2019-11-19 11:53:09 +08:00
Version : 1.0
Release : 2
2019-11-19 11:53:09 +08:00
License : GPLv2
Source0 : %{kmod_name}-%{version}.tar.gz
buildroot : %{_tmppath}/%{kmod_name}-%{version}-build
BuildRequires: make
BuildRequires: gcc
BuildRequires: kernel-devel
%description
The driver of CPU prefetch tuning module for Kunpeng 920.
2019-11-19 11:53:09 +08:00
Users can user this module to control CPU prefetch settings.
%global debug_package %{nil}
%prep
%setup -n %{kmod_name}-%{version}
sed -i 's/EXTRA_CFLAGS += -Wall -Werror/EXTRA_CFLAGS += -Wall/g' Makefile
2019-11-19 11:53:09 +08:00
%build
%make_build
%install
mkdir -p %{buildroot}/lib/modules/EulerOS/%{kmod_name}
install -m 640 %{kmod_name}.ko %{buildroot}/lib/modules/EulerOS/%{kmod_name}/%{kmod_name}.ko
%clean
rm -rf %{buildroot}
rm -rf %_builddir/%{kmod_name}-%{version}
%files
%license License/LICENSE
%defattr(-,root,root)
%dir /lib/modules/EulerOS/%{kmod_name}
%attr(0640,root,root) /lib/modules/EulerOS/%{kmod_name}/%{kmod_name}.ko
%pre
%post
depmod -a `uname -r`
%preun
%changelog
* Sat Feb 29 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-2
- Fix warning exception caused by compilation options
2019-11-19 11:53:09 +08:00
* Mon Nov 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0-1
- Package init