From b8cf3e7d6404a08197db9a8da83aa8d1af9c92fd Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Wed, 6 Nov 2019 13:07:19 -0500 Subject: [PATCH] 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. --- kernel.spec | 5 +++++ 1 file changed, 5 insertions(+) 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