%endif
%define rel 0.1
-%define basever 5.9
+%define basever 5.10
%define postver .0
# define this to '-%{basever}' for longterm branch
License: GPL v2
Group: Base/Kernel
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{basever}.tar.xz
-# Source0-md5: 0959d759fd19e146367221aff504ad91
+# Source0-md5: 753adc474bf799d569dec4f165ed92c3
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v5.x/patch-%{version}.xz
-# Patch0-md5: 1f276bf9d1bc12215179a4681c29a573
+# Patch0-md5: d7f9892b339f14f5d2afa6bfb842b1f4
%endif
Source1: kernel.sysconfig
# based on ftp://ftp.leg.uct.ac.za/pub/linux/rip/tmpfs_root-2.6.30.diff.gz
Patch7000: kernel-inittmpfs.patch
+# ARM only
+Patch8000: rpi-wm8804.patch
+
# Do not remove this line, please. It is easier for me to uncomment two lines, then patch
# kernel.spec every time.
#Patch50000: kernel-usb_reset.patch
BuildRequires: kmod >= %{kmod_ver}
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel
+BuildRequires: openssl-tools
BuildRequires: perl-base
BuildRequires: rpm-build >= 4.5-24
BuildRequires: rpmbuild(macros) >= 1.743
%patch7000 -p1
%endif
+%ifarch %{arm} aarch64
+%patch8000 -p1
+%endif
+
%if %{with rt}
%patch500 -p1
rm -f localversion-rt
find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
find -name '*.py' -print0 | \
- xargs -0 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
- -e '1s,/usr/bin/env python,%{__python},' \
- -e '1s,/usr/bin/env python3,%{__python3},'
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
+ -e '1s,/usr/bin/env python$,%{__python},' \
+ -e '1s,/usr/bin/env python3$,%{__python3},'
-%{__sed} -i -e '1s,/usr/bin/python,%{__python},' \
- -e '1s,/usr/bin/env python,%{__python},' \
- -e '1s,/usr/bin/env python3,%{__python3},' \
+%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
+ -e '1s,/usr/bin/env python$,%{__python},' \
+ -e '1s,/usr/bin/env python3$,%{__python3},' \
drivers/staging/greybus/tools/lbtest \
scripts/bloat-o-meter \
scripts/diffconfig \
%endif
%exclude %dir %{_kernelsrcdir}/arch/um
%{_kernelsrcdir}/arch/*/kernel/asm-offsets*
-%{_kernelsrcdir}/arch/*/kernel/module.lds
%{_kernelsrcdir}/arch/*/kernel/sigframe*.h
%{_kernelsrcdir}/drivers/media/pci/bt8xx/bttv.h
%{_kernelsrcdir}/kernel/bounds.c
%{_kernelsrcdir}/scripts/mod/modpost.h
%attr(755,root,root) %{_kernelsrcdir}/scripts/mkcompile_h
%{_kernelsrcdir}/scripts/mkmakefile
-%{_kernelsrcdir}/scripts/module-common.lds
%attr(755,root,root) %{_kernelsrcdir}/scripts/setlocalversion
%{_kernelsrcdir}/scripts/subarch.include
%{_kernelsrcdir}/scripts/*.c