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 <olaf@aepfle.de>
Acked-by: Jan Beulich <jbeulich@suse.com>
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.
+
config FRAME_POINTER
bool "Compile Xen with frame pointers"
default DEBUG
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-$(CONFIG_DEBUG_INFO) += -g
CFLAGS += '-D__OBJECT_FILE__="$@"'
ifneq ($(clang),y)