|
@@ -40,7 +40,7 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
|
# adding some text to the end of the version number.
|
|
|
#
|
|
|
%define sublevel 4
|
|
|
-%define patchlevel 93
|
|
|
+%define patchlevel 104
|
|
|
%define kversion 5.%{sublevel}
|
|
|
%define rpmversion 5.%{sublevel}.%{patchlevel}
|
|
|
%define release 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
@@ -145,6 +145,44 @@ Summary(ja): Linux カーネル (Linux オペレーティングシステムの
|
|
|
#
|
|
|
%define kernel_prereq fileutils, %{kmod}, initscripts >= 8.80, %{mkinitrd} >= %{mkinitrd_version}, linux-firmware >= 20110601-1
|
|
|
|
|
|
+#
|
|
|
+# stop to remove %%{buildroot} before %%install
|
|
|
+#
|
|
|
+
|
|
|
+%global __spec_install_pre %{___build_pre}
|
|
|
+
|
|
|
+#
|
|
|
+# for compressing modules
|
|
|
+#
|
|
|
+%global zipmodules 1
|
|
|
+
|
|
|
+%if %{zipmodules}
|
|
|
+# for parallel xz processes, replace with 1 to go back to single process
|
|
|
+%global zcpu `nproc --all`
|
|
|
+%endif
|
|
|
+
|
|
|
+%define __remove_unwanted_dbginfo_install_post \
|
|
|
+ rm -rf $RPM_BUILD_ROOT/usr/lib/debug/usr/src; \
|
|
|
+%{nil}
|
|
|
+
|
|
|
+%define __module_compress_install_post \
|
|
|
+ if [ "%{zipmodules}" -eq "1" ]; then \
|
|
|
+ find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P%{zcpu} xz; \
|
|
|
+ fi \
|
|
|
+%{nil}
|
|
|
+
|
|
|
+%if "%{buildup}" != "0"
|
|
|
+%define __spec_install_post \
|
|
|
+ %{?__debug_package:%{__debug_install_post}}\
|
|
|
+ %{__arch_install_post}\
|
|
|
+ %{__os_install_post}\
|
|
|
+ %{__remove_unwanted_dbginfo_install_post}\
|
|
|
+ %{__module_compress_install_post}
|
|
|
+%endif
|
|
|
+#
|
|
|
+# package info
|
|
|
+#
|
|
|
+
|
|
|
Name: kernel
|
|
|
Version: %{rpmversion}
|
|
|
Release: %{release}
|
|
@@ -194,6 +232,7 @@ BuildRequires: pciutils-devel gettext ncurses-devel
|
|
|
BuildRequires: libcap-devel
|
|
|
%endif
|
|
|
BuildRequires: zlib-devel binutils-devel
|
|
|
+BuildRequires: glibc-static
|
|
|
|
|
|
Source0: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
|
|
|
Source10: COPYING.modules
|
|
@@ -476,6 +515,9 @@ manipulation of eBPF programs and maps.
|
|
|
%endif
|
|
|
|
|
|
|
|
|
+#debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
cd linux-%{kversion}
|
|
@@ -700,6 +742,7 @@ BuildKernel() {
|
|
|
cat modinfo |\
|
|
|
grep -v "^GPL" |
|
|
|
grep -v "^Dual BSD/GPL" |\
|
|
|
+ grep -v "^Dual MIT/GPL" |\
|
|
|
grep -v "^Dual MPL/GPL" |\
|
|
|
grep -v "^GPL and additional rights" |\
|
|
|
grep -v "^GPL v2" && exit 1
|
|
@@ -1064,7 +1107,7 @@ fi
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
/%{image_install_path}/*-%{KVERREL}
|
|
|
-%if %{image_install_path} != "boot"
|
|
|
+%if "%{image_install_path}" != "boot"
|
|
|
/boot/System.map-%{KVERREL}
|
|
|
/boot/config-%{KVERREL}
|
|
|
%endif
|
|
@@ -1083,7 +1126,7 @@ fi
|
|
|
%files pae
|
|
|
%defattr(-,root,root)
|
|
|
/%{image_install_path}/*-%{KVERREL}pae
|
|
|
-%if %{image_install_path} != "boot"
|
|
|
+%if "%{image_install_path}" != "boot"
|
|
|
/boot/System.map-%{KVERREL}pae
|
|
|
/boot/config-%{KVERREL}pae
|
|
|
%endif
|
|
@@ -1160,6 +1203,11 @@ fi
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Mar 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.104-1
|
|
|
+- updated to 5.4.104.
|
|
|
+- fixed kernel config for i686.
|
|
|
+- compressed kernel modules.
|
|
|
+
|
|
|
* Sat Jan 30 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.4.93-1
|
|
|
- updated to 5.4.93.
|
|
|
|