]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
xen/Kconfig: livepatch-build-tools requires debug information
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 2 Dec 2024 14:22:05 +0000 (15:22 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Dec 2024 14:22:05 +0000 (15:22 +0100)
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é <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Kconfig.debug

index 07ff7eb7ba831cb1f37ef583926d20a5e7b1ad38..c4a8d86912e09b1038deba982048dcd954eda74e 100644 (file)
@@ -133,7 +133,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