summaryrefslogtreecommitdiffstats
path: root/kernel.spec
diff options
context:
space:
mode:
authorLaura Abbott <labbott@redhat.com>2019-11-06 13:07:19 -0500
committerLaura Abbott <labbott@redhat.com>2019-11-13 10:01:45 -0500
commitb8cf3e7d6404a08197db9a8da83aa8d1af9c92fd (patch)
tree66dd8ce9d4394693f0f85546bc373791080cca4a /kernel.spec
parentd6b81a036fe8e441c8b8f401a06c343a3e6d89f3 (diff)
downloadkernel-b8cf3e7d6404a08197db9a8da83aa8d1af9c92fd.tar.gz
kernel-b8cf3e7d6404a08197db9a8da83aa8d1af9c92fd.tar.xz
kernel-b8cf3e7d6404a08197db9a8da83aa8d1af9c92fd.zip
Add kpatch flags
Now that we have the rest of the flags hooked up, go ahead and build with the kpatch flags. This should have a minimal effect at runtime.
Diffstat (limited to 'kernel.spec')
-rw-r--r--kernel.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel.spec b/kernel.spec
index 9ae95c965..0289fa8c6 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1526,6 +1526,11 @@ BuildKernel() {
KCFLAGS="%{?kcflags}"
+ # add kpatch flags for base kernel
+ if [ "$Flavour" == "" ]; then
+ KCFLAGS="$KCFLAGS %{?kpatch_kcflags}"
+ fi
+
%{make} ARCH=$Arch olddefconfig >/dev/null
# This ensures build-ids are unique to allow parallel debuginfo