From: Roger Pau Monné Date: Mon, 16 Dec 2024 12:34:43 +0000 (+0100) Subject: xen/Kconfig: livepatch-build-tools requires debug information X-Git-Tag: RELEASE-4.18.4~7 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=abf8f900c6d9010f273c16f92777213ecad92bc4;p=xen.git xen/Kconfig: livepatch-build-tools requires debug information The tools infrastructure used to build livepatches for Xen (livepatch-build-tools) consumes some DWARF debug information present in xen-syms to generate a livepatch (see livepatch-build script usage of readelf -wi). The current Kconfig defaults however will enable LIVEPATCH without DEBUG_INFO on release builds, thus providing a default Kconfig selection that's not suitable for livepatch-build-tools even when LIVEPATCH support is enabled, because it's missing the DWARF debug section. Fix by defaulting DEBUG_INFO to enabled when LIVEPATCH is. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich master commit: 126b0a6e537ce1d486a29e35cfeec1f222a74d11 master date: 2024-12-02 15:22:05 +0100 --- diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug index c533ddf75f..a2df359273 100644 --- a/xen/Kconfig.debug +++ b/xen/Kconfig.debug @@ -127,7 +127,7 @@ endif # DEBUG || EXPERT config DEBUG_INFO bool "Compile Xen with debug info" - default DEBUG + default DEBUG || LIVEPATCH help Say Y here if you want to build Xen with debug information. This information is needed e.g. for doing crash dump analysis of the