%define rel 1
%define basever 4.14
-%define postver .67
+%define postver .189
# define this to '-%{basever}' for longterm branch
%define versuffix -%{basever}
# Source0-md5: bacdb9ffdcd922aa069a5e1520160e24
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz
-# Patch0-md5: db557e7181b526fced00b3dc50ed44fa
+# Patch0-md5: 69fd4b42baef65bce6a126ae5fa3ca85
%endif
Source1: kernel.sysconfig
Source58: kernel-inittmpfs.config
+# https://bugs.freedesktop.org/show_bug.cgi?id=104773
+Patch2: i915_crash.patch
+
# http://dev.gentoo.org/~spock/projects/fbcondecor/archive/fbcondecor-0.9.4-2.6.25-rc6.patch
Patch3: kernel-fbcondecor.patch
Patch6: linux-wistron-nx.patch
Patch250: kernel-fix_256colors_menuconfig.patch
# https://rt.wiki.kernel.org/
-# https://www.kernel.org/pub/linux/kernel/projects/rt/4.14/patch-4.14.63-rt40.patch.xz with small updates
+# https://www.kernel.org/pub/linux/kernel/projects/rt/4.14/patch-4.14.78-rt47.patch.xz
Patch500: kernel-rt.patch
Patch2000: kernel-small_fixes.patch
%endif
BuildRequires: elfutils-devel
BuildRequires: gcc >= 6:7.2.0-6
+BuildRequires: gcc-c++
BuildRequires: gcc-plugin-devel
BuildRequires: hostname
+BuildRequires: libstdc++-devel
BuildRequires: kmod >= 12-2
BuildRequires: openssl-devel
BuildRequires: perl-base
%if %{without vanilla}
+%patch2 -p1
+
%if %{with fbcondecor}
%patch3 -p1
%endif
# cleanup backups after patching
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},'
+
+%{__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 \
+ scripts/show_delta \
+ tools/kvm/kvm_stat/kvm_stat
+
+find -name '*.pl' -print0 | \
+ xargs -0 %{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' \
+ scripts/dtc/dt_to_config \
+ scripts/cleanfile \
+ scripts/cleanpatch \
+ scripts/get_dvb_firmware \
+ scripts/kernel-doc \
+ scripts/stackdelta
+
%build
install -d %{objdir}
cat > %{targetobj}.mk <<'EOF'
touch $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/modules.dep
%endif
-# /etc/modrobe.d
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{kernel_release}
+# /etc/depmod.d /etc/modrobe.d
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{depmod.d,modprobe.d}/%{kernel_release}
install -d $RPM_BUILD_ROOT/etc/sysconfig
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/kernel
/lib/modules/%{kernel_release}/kernel/security
/lib/modules/%{kernel_release}/kernel/virt
+%dir %{_sysconfdir}/depmod.d/%{kernel_release}
%dir %{_sysconfdir}/modprobe.d/%{kernel_release}
# provided by build