Add kernel-kvm-debug
This commit is contained in:
parent
b5d37c0460
commit
08b91daf48
6711
SOURCES/kernel-ppc64le-kvm-debug-rhel.config
Normal file
6711
SOURCES/kernel-ppc64le-kvm-debug-rhel.config
Normal file
File diff suppressed because it is too large
Load Diff
@ -1561,6 +1561,21 @@ The kernel package contains a variant of the PPC64le Linux kernel with
|
||||
KVM support.
|
||||
%endif
|
||||
|
||||
%if %{with_ppc_kvm} && %{with_debug}
|
||||
%define variant_summary The Linux kernel compiled with extra debugging enabled
|
||||
%if !%{debugbuildsenabled}
|
||||
%kernel_variant_package -m kvm-debug
|
||||
%else
|
||||
%kernel_variant_package kvm-debug
|
||||
%endif
|
||||
%description kvm-debug-core
|
||||
The debug kernel package contains a variant of the PPC64le Linux kernel with
|
||||
KVM support.
|
||||
This variant of the kernel has numerous debugging options enabled.
|
||||
It should only be installed when trying to gather additional information
|
||||
on kernel bugs, as some of these options impact performance noticably.
|
||||
%endif
|
||||
|
||||
%if %{with_arm64_64k} && %{with_debug}
|
||||
%define variant_summary The Linux kernel compiled with extra debugging enabled
|
||||
%if !%{debugbuildsenabled}
|
||||
@ -2701,6 +2716,9 @@ BuildKernel %make_target %kernel_image %{_use_vdso}
|
||||
|
||||
%if %{with_ppc_kvm}
|
||||
git apply $RPM_SOURCE_DIR/ppc64le-kvm-support.patch
|
||||
%if %{with_debug}
|
||||
BuildKernel %make_target %kernel_image %{_use_vdso} kvm-debug
|
||||
%endif
|
||||
BuildKernel %make_target %kernel_image %{_use_vdso} kvm
|
||||
%endif
|
||||
|
||||
@ -2878,6 +2896,9 @@ find Documentation -type d | xargs chmod u+w
|
||||
if [ "%{with_ppc_kvm}" -ne "0" ]; then \
|
||||
%{modsign_cmd} certs/signing_key.pem.sign+kvm certs/signing_key.x509.sign+kvm $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+kvm/ \
|
||||
fi \
|
||||
if [ "%{with_ppc_kvm}" -ne "0" ] && [ "%{with_debug}" -ne "0" ]; then \
|
||||
%{modsign_cmd} certs/signing_key.pem.sign+kvm-debug certs/signing_key.x509.sign+kvm-debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+kvm-debug/ \
|
||||
fi \
|
||||
if [ "%{with_realtime}" -ne "0" ] && [ "%{with_debug}" -ne "0" ]; then \
|
||||
%{modsign_cmd} certs/signing_key.pem.sign+rt-debug certs/signing_key.x509.sign+rt-debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+rt-debug/ \
|
||||
fi \
|
||||
@ -3450,6 +3471,11 @@ fi\
|
||||
%kernel_variant_post -v kvm
|
||||
%endif
|
||||
|
||||
%if %{with_ppc_kvm} && %{with_debug}
|
||||
%kernel_variant_preun -v kvm-debug
|
||||
%kernel_variant_post -v kvm-debug
|
||||
%endif
|
||||
|
||||
%if %{with_debug} && %{with_arm64_64k}
|
||||
%kernel_variant_preun -v 64k-debug
|
||||
%kernel_variant_post -v 64k-debug
|
||||
@ -3798,11 +3824,22 @@ fi
|
||||
%files 64k-debug-modules
|
||||
%files 64k-debug-modules-extra
|
||||
%endif
|
||||
%if %{with_ppc_kvm}
|
||||
%files kvm-debug
|
||||
%files kvm-debug-core
|
||||
%files kvm-debug-devel
|
||||
%files kvm-debug-devel-matched
|
||||
%files kvm-debug-modules
|
||||
%files kvm-debug-modules-extra
|
||||
%endif
|
||||
%endif
|
||||
%kernel_variant_files %{use_vdso} %{with_pae} lpae
|
||||
%kernel_variant_files %{_use_vdso} %{with_zfcpdump} zfcpdump
|
||||
%kernel_variant_files %{_use_vdso} %{with_arm64_64k} 64k
|
||||
%if %{with_ppc_kvm}
|
||||
%kernel_variant_files %{_use_vdso} %{with_ppc_kvm} kvm
|
||||
%kernel_variant_files %{_use_vdso} %{with_debug} kvm-debug
|
||||
%endif
|
||||
%kernel_variant_files %{_use_vdso} %{with_realtime_arm64_64k} rt-64k
|
||||
|
||||
%define kernel_variant_ipaclones(k:) \
|
||||
|
Loading…
Reference in New Issue
Block a user