%define rel 1
%define basever 4.14
-%define postver .4
+%define postver .90
# define this to '-%{basever}' for longterm branch
-%define versuffix %{nil}
+%define versuffix -%{basever}
# __alt_kernel is list of features, empty string if none set
# _alt kernel is defined as: %{nil}%{?alt_kernel:-%{?alt_kernel}} (defined in rpm.macros)
# Source0-md5: bacdb9ffdcd922aa069a5e1520160e24
%if "%{postver}" != ".0"
Patch0: https://www.kernel.org/pub/linux/kernel/v4.x/patch-%{version}.xz
-# Patch0-md5: 67bd52ec7993bec22ce729d4146d1476
+# Patch0-md5: 021abc8d53596a22e2f59288044efbbb
%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.9/patch-4.9.6-rt4.patch.xz
+# 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
BuildRequires: elftoaout
%endif
BuildRequires: elfutils-devel
-BuildRequires: gcc >= 5:3.2
+BuildRequires: gcc >= 6:7.2.0-6
BuildRequires: gcc-plugin-devel
BuildRequires: hostname
BuildRequires: kmod >= 12-2
%if %{without vanilla}
+%patch2 -p1
+
%if %{with fbcondecor}
%patch3 -p1
%endif
# Do not remove this, please!
#%%patch50000 -p1
+chmod 755 tools/objtool/sync-check.sh
+
# Fix EXTRAVERSION in main Makefile
sed -i 's#EXTRAVERSION =.*#EXTRAVERSION = %{?alt_kernel:.%{alt_kernel}}#g' Makefile