>>> On 31.08.18 at 10:32, <wei.l...@citrix.com> wrote: > On Fri, Aug 31, 2018 at 10:29:21AM +0200, Olaf Hering wrote: >> 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 <o...@aepfle.de> >> --- >> xen/Kconfig.debug | 7 +++++++ >> xen/Rules.mk | 5 ++++- >> 2 files changed, 11 insertions(+), 1 deletion(-) >> >> diff --git a/xen/Kconfig.debug b/xen/Kconfig.debug >> index 380c4e8d75..1d8c2c94a9 100644 >> --- a/xen/Kconfig.debug >> +++ b/xen/Kconfig.debug >> @@ -11,6 +11,13 @@ config DEBUG >> >> You probably want to say 'N' here. >> >> +config DEBUG_INFO >> + bool "Compile Xen with debug info" >> + default y > > At the very least this should be default DEBUG
I disagree - -g is being passed to the compiler unconditionally at present. > But what is the difference between this and DEBUG anyway? DEBUG_INFO controls use of the -g compiler option. DEBUG controls how e.g. ASSERT()s behave. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel