[xen master] xen: add DEBUG_INFO Kconfig symbol

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[xen master] xen: add DEBUG_INFO Kconfig symbol

commit a5f52c3f725f7472d03a116d6ea33c5b5f8619a4
Author:     Olaf Hering <[hidden email]>
AuthorDate: Thu Sep 6 16:02:58 2018 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Thu Sep 6 16:02:58 2018 +0200

    xen: add DEBUG_INFO Kconfig symbol
    Creating debug info during build is not strictly required at runtime.
    Make it optional by introducing a new Kconfig knob "DEBUG_INFO".
    This slightly reduces build time and diskusage, if disabled.
    Signed-off-by: Olaf Hering <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
 xen/Kconfig.debug | 7 +++++++
 xen/Rules.mk      | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug
index 380c4e8d75..4d5d7f87cb 100644
--- a/xen/Kconfig.debug
+++ b/xen/Kconfig.debug
@@ -20,6 +20,13 @@ config CRASH_DEBUG
   If you want to attach gdb to Xen to debug Xen if it crashes
   then say Y.
+config DEBUG_INFO
+ bool "Compile Xen with debug info"
+ default y
+ ---help---
+  If you say Y here the resulting Xen will include debugging info
+  resulting in a larger binary image.
  bool "Compile Xen with frame pointers"
  default DEBUG
diff --git a/xen/Rules.mk b/xen/Rules.mk
index 47c954425d..ac0a8ea2e9 100644
--- a/xen/Rules.mk
+++ b/xen/Rules.mk
@@ -55,7 +55,8 @@ endif
 CFLAGS += -nostdinc -fno-builtin -fno-common
 CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith
-CFLAGS += -pipe -g -D__XEN__ -include $(BASEDIR)/include/xen/config.h
+CFLAGS += -pipe -D__XEN__ -include $(BASEDIR)/include/xen/config.h
 CFLAGS += '-D__OBJECT_FILE__="$@"'
 ifneq ($(clang),y)
generated by git-patchbot for /home/xen/git/xen.git#master

Xen-changelog mailing list
[hidden email]