|
@@ -26,8 +26,9 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
%define builddoc 0
|
|
%define builddoc 0
|
|
%define buildsource 0
|
|
%define buildsource 0
|
|
|
|
|
|
-%define with_tools 1
|
|
+%define with_tools 1
|
|
-%define with_headers 1
|
|
+%define with_bpftool 1
|
|
|
|
+%define with_headers 1
|
|
%define with_firmware 0
|
|
%define with_firmware 0
|
|
|
|
|
|
# Versions of various parts
|
|
# Versions of various parts
|
|
@@ -39,7 +40,7 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
# adding some text to the end of the version number.
|
|
# adding some text to the end of the version number.
|
|
#
|
|
#
|
|
%define sublevel 4
|
|
%define sublevel 4
|
|
-%define patchlevel 52
|
|
+%define patchlevel 55
|
|
%define kversion 5.%{sublevel}
|
|
%define kversion 5.%{sublevel}
|
|
%define rpmversion 5.%{sublevel}.%{patchlevel}
|
|
%define rpmversion 5.%{sublevel}.%{patchlevel}
|
|
%define release 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
%define release 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
@@ -72,7 +73,7 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
|
|
|
|
# source/doc build section is moved to x86_64
|
|
# source/doc build section is moved to x86_64
|
|
%ifarch i686
|
|
%ifarch i686
|
|
-%define with_headers 0
|
|
+%define with_headers 1
|
|
%define buildsource 0
|
|
%define buildsource 0
|
|
%define builddoc 0
|
|
%define builddoc 0
|
|
%define with_firmware 0
|
|
%define with_firmware 0
|
|
@@ -97,6 +98,16 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
%define builddoc 1
|
|
%define builddoc 1
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%if %{with systemd}
|
|
|
|
+%define builddoc 0
|
|
|
|
+%define buildsource 0
|
|
|
|
+%define buildup 0
|
|
|
|
+%define buildpae 0
|
|
|
|
+%define with_headers 0
|
|
|
|
+%define with_firmware 0
|
|
|
|
+%define with_tools 1
|
|
|
|
+%define with_bpftool 0
|
|
|
|
+%endif
|
|
#
|
|
#
|
|
# Three sets of minimum package version requirements in the form of Conflicts:
|
|
# Three sets of minimum package version requirements in the form of Conflicts:
|
|
# to versions below the minimum
|
|
# to versions below the minimum
|
|
@@ -139,6 +150,10 @@ Group: System Environment/Kernel
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Version: %{rpmversion}
|
|
Version: %{rpmversion}
|
|
Release: %{release}
|
|
Release: %{release}
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: daisuke, shaolin, iwamoto
|
|
|
|
+
|
|
ExclusiveArch: noarch i686 x86_64
|
|
ExclusiveArch: noarch i686 x86_64
|
|
ExclusiveOS: Linux
|
|
ExclusiveOS: Linux
|
|
Provides: kernel = %{rpmversion}
|
|
Provides: kernel = %{rpmversion}
|
|
@@ -179,10 +194,6 @@ BuildRequires: libcap-devel
|
|
%endif
|
|
%endif
|
|
BuildRequires: zlib-devel binutils-devel
|
|
BuildRequires: zlib-devel binutils-devel
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
|
-Distribution: Vine Linux
|
|
|
|
-Packager: daisuke, shaolin, iwamoto
|
|
|
|
-
|
|
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
|
|
Source10: COPYING.modules
|
|
Source10: COPYING.modules
|
|
Source11: genkey
|
|
Source11: genkey
|
|
@@ -452,6 +463,7 @@ the kernel source.
|
|
|
|
|
|
%endif # with_tools
|
|
%endif # with_tools
|
|
|
|
|
|
|
|
+%if %{with_bpftool}
|
|
%package -n bpftool
|
|
%package -n bpftool
|
|
Summary: Inspection and simple manipulation of eBPF programs and maps
|
|
Summary: Inspection and simple manipulation of eBPF programs and maps
|
|
License: GPLv2
|
|
License: GPLv2
|
|
@@ -459,6 +471,7 @@ License: GPLv2
|
|
%description -n bpftool
|
|
%description -n bpftool
|
|
This package contains the bpftool, which allows inspection and simple
|
|
This package contains the bpftool, which allows inspection and simple
|
|
manipulation of eBPF programs and maps.
|
|
manipulation of eBPF programs and maps.
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
@@ -746,9 +759,11 @@ make
|
|
popd
|
|
popd
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%if %{with_bpftool}
|
|
pushd tools/bpf/bpftool
|
|
pushd tools/bpf/bpftool
|
|
%{__make} EXTRA_CFLAGS="%{optflags}" EXTRA_LDFLAGS="%{?__global_ldflags}" DESTDIR=%{buildroot} V=1
|
|
%{__make} EXTRA_CFLAGS="%{optflags}" EXTRA_LDFLAGS="%{?__global_ldflags}" DESTDIR=%{buildroot} V=1
|
|
popd
|
|
popd
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
###
|
|
###
|
|
@@ -868,9 +883,11 @@ make INSTALL_ROOT=%{buildroot} install
|
|
popd
|
|
popd
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%if %{with_bpftool}
|
|
pushd tools/bpf/bpftool
|
|
pushd tools/bpf/bpftool
|
|
%{__make} EXTRA_CFLAGS="%{optflags}" EXTRA_LDFLAGS="%{?__global_ldflags}" DESTDIR=%{buildroot} V=1 prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install
|
|
%{__make} EXTRA_CFLAGS="%{optflags}" EXTRA_LDFLAGS="%{?__global_ldflags}" DESTDIR=%{buildroot} V=1 prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install
|
|
popd
|
|
popd
|
|
|
|
+%endif
|
|
|
|
|
|
rm -f %{buildroot}%{_prefix}/src/linux-%{kversion}/.clang-format
|
|
rm -f %{buildroot}%{_prefix}/src/linux-%{kversion}/.clang-format
|
|
rm -f %{buildroot}%{_prefix}/src/linux-%{kversion}/.cocciconfig
|
|
rm -f %{buildroot}%{_prefix}/src/linux-%{kversion}/.cocciconfig
|
|
@@ -1113,7 +1130,6 @@ fi
|
|
%else
|
|
%else
|
|
/etc/rc.d/init.d/cpupower
|
|
/etc/rc.d/init.d/cpupower
|
|
%endif
|
|
%endif
|
|
-
|
|
|
|
%{_bindir}/x86_energy_perf_policy
|
|
%{_bindir}/x86_energy_perf_policy
|
|
%{_mandir}/man8/x86_energy_perf_policy*
|
|
%{_mandir}/man8/x86_energy_perf_policy*
|
|
%{_bindir}/turbostat
|
|
%{_bindir}/turbostat
|
|
@@ -1133,13 +1149,19 @@ fi
|
|
%{_includedir}/cpuidle.h
|
|
%{_includedir}/cpuidle.h
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%if %{with_bpftool}
|
|
%files -n bpftool
|
|
%files -n bpftool
|
|
%{_sbindir}/bpftool
|
|
%{_sbindir}/bpftool
|
|
%dir %{_sysconfdir}/bash_completion.d
|
|
%dir %{_sysconfdir}/bash_completion.d
|
|
%{_sysconfdir}/bash_completion.d/bpftool
|
|
%{_sysconfdir}/bash_completion.d/bpftool
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.55-1
|
|
|
|
+- updated to 5.4.55.
|
|
|
|
+- re-enabled to build kernel-headers on i686.
|
|
|
|
+
|
|
* Sun Jul 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.52-1
|
|
* Sun Jul 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.52-1
|
|
- updated to 5.4.52.
|
|
- updated to 5.4.52.
|
|
- added systemd support (disabled as default).
|
|
- added systemd support (disabled as default).
|