summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.spec')
-rwxr-xr-xkernel.spec10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index ddd45e590..177137d2c 100755
--- a/kernel.spec
+++ b/kernel.spec
@@ -862,6 +862,11 @@ Source4002: gating.yaml
Patch1: patch-%{patchversion}-redhat.patch
%endif
+# from kernel-ark
+Patch2: gcc-12-subcmd-util.patch
+# from https://lore.kernel.org/all/20220120233748.2062559-1-slyich@gmail.com/raw
+Patch3: gcc-12-objtool-check.patch
+
# empty final patch to facilitate testing of kernel patches
Patch999999: linux-kernel-test.patch
@@ -1403,6 +1408,11 @@ ApplyOptionalPatch patch-%{patchversion}-redhat.patch
ApplyOptionalPatch linux-kernel-test.patch
+%if 0%{?fedora} >= 36
+ApplyOptionalPatch gcc-12-subcmd-util.patch
+ApplyOptionalPatch gcc-12-objtool-check.patch
+%endif
+
# END OF PATCH APPLICATIONS
# Any further pre-build tree manipulations happen here.