Home Home > GIT Browse > linux-next
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-02-08 12:08:22 +0100
committerMichal Suchanek <msuchanek@suse.de>2019-02-08 12:32:21 +0100
commit751908095c7556831da3722634d685577f486c46 (patch)
tree7b774e769f70d3694fc7c302cb1fb30474699c6e
parent9b3ca32c11854156b2f950ff5e26131377d8445e (diff)
rpm/kernel-binary.spec.in: Build livepatch support in SUSE release
projects (bsc#1124167).
-rw-r--r--rpm/kernel-binary.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index c078fb217c..bdf5440857 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -37,6 +37,10 @@
%define rpm_install_dir %buildroot%obj_install_dir
%define kernel_build_dir %my_builddir/linux-%srcversion/linux-obj
+%if 0%{?_project:1} && %(echo %_project | egrep -x -f %_sourcedir/release-projects | grep -v ^PTF | grep -vc openSUSE)
+ %define klp_symbols 1
+%endif
+
%(chmod +x %_sourcedir/{@SCRIPTS@})
%global cpu_arch %(%_sourcedir/arch-symbols %_target_cpu)