* Immortal CONFIG_DEBUG_INFO=y
@ 2008-11-16 7:42 Alexey Dobriyan
2008-11-16 7:49 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2008-11-16 7:42 UTC (permalink / raw)
To: viro, sam, zippel; +Cc: linux-kernel
As known to everybody doing fat builds, banning DEBUG_INFO=y is mandatory,
otherwise build is slower and takes much more disk space. And to not
accidently enable it, banning it in kconfig:
@@ -475,7 +475,7 @@ config DEBUG_BUGVERBOSE
config DEBUG_INFO
bool "Compile the kernel with debug info"
- depends on DEBUG_KERNEL
+ depends on DEBUG_KERNEL && DISABLED
help
If you say Y here the resulting kernel image will include
debugging info resulting in a larger kernel image.
This works pretty well -- allmodconfig generates config without DEBUG_INFO and
so on, defconfigs also regenerated without it, even if original one in arch/
has DEBUG_INFO enabled and so on. Trick also works for other options, like,
KALLSYMS_EXTRA_PASS.
Except one case:
make ARCH=sh magicpanelr2_defconfig
DEBUG_INFO survives to .config and resulting build runs with -g.
Now, DEBUG_INFO correctly dissapeares for all other defconfig.
And it dissapeares in se7721_defconfig case (which has CONFIG_DEBUG_KERNEL=y
_and_ CONFIG_DEBUG_INFO=y)
All other options I ban and enable (LOCALVERSION_AUTO, KALLSYMS_EXTRA_PASS,
MODVERSIONS, MODULE_SRCVERSION_ALL, STANDALONE, STAGING) correctly on and off
themselves in all cases.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Immortal CONFIG_DEBUG_INFO=y
2008-11-16 7:42 Immortal CONFIG_DEBUG_INFO=y Alexey Dobriyan
@ 2008-11-16 7:49 ` Sam Ravnborg
2008-11-16 8:03 ` Alexey Dobriyan
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2008-11-16 7:49 UTC (permalink / raw)
To: Alexey Dobriyan; +Cc: viro, zippel, linux-kernel
On Sun, Nov 16, 2008 at 10:42:01AM +0300, Alexey Dobriyan wrote:
> As known to everybody doing fat builds, banning DEBUG_INFO=y is mandatory,
> otherwise build is slower and takes much more disk space. And to not
> accidently enable it, banning it in kconfig:
>
> @@ -475,7 +475,7 @@ config DEBUG_BUGVERBOSE
>
> config DEBUG_INFO
> bool "Compile the kernel with debug info"
> - depends on DEBUG_KERNEL
> + depends on DEBUG_KERNEL && DISABLED
> help
> If you say Y here the resulting kernel image will include
> debugging info resulting in a larger kernel image.
>
> This works pretty well -- allmodconfig generates config without DEBUG_INFO and
> so on, defconfigs also regenerated without it, even if original one in arch/
> has DEBUG_INFO enabled and so on. Trick also works for other options, like,
> KALLSYMS_EXTRA_PASS.
>
> Except one case:
>
> make ARCH=sh magicpanelr2_defconfig
>
> DEBUG_INFO survives to .config and resulting build runs with -g.
Because that defconfig does:
CONFIG_SH_KGDB=y
and SH_KGDB does:
select DEBUG_INFO
Instead of editing the Kconfig file you should use the KCONFIG_ALLCONFIG trick.
See README for usage.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Immortal CONFIG_DEBUG_INFO=y
2008-11-16 7:49 ` Sam Ravnborg
@ 2008-11-16 8:03 ` Alexey Dobriyan
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2008-11-16 8:03 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: viro, zippel, linux-kernel
On Sun, Nov 16, 2008 at 08:49:48AM +0100, Sam Ravnborg wrote:
> On Sun, Nov 16, 2008 at 10:42:01AM +0300, Alexey Dobriyan wrote:
> > As known to everybody doing fat builds, banning DEBUG_INFO=y is mandatory,
> > otherwise build is slower and takes much more disk space. And to not
> > accidently enable it, banning it in kconfig:
> >
> > @@ -475,7 +475,7 @@ config DEBUG_BUGVERBOSE
> >
> > config DEBUG_INFO
> > bool "Compile the kernel with debug info"
> > - depends on DEBUG_KERNEL
> > + depends on DEBUG_KERNEL && DISABLED
> > help
> > If you say Y here the resulting kernel image will include
> > debugging info resulting in a larger kernel image.
> >
> > This works pretty well -- allmodconfig generates config without DEBUG_INFO and
> > so on, defconfigs also regenerated without it, even if original one in arch/
> > has DEBUG_INFO enabled and so on. Trick also works for other options, like,
> > KALLSYMS_EXTRA_PASS.
> >
> > Except one case:
> >
> > make ARCH=sh magicpanelr2_defconfig
> >
> > DEBUG_INFO survives to .config and resulting build runs with -g.
>
> Because that defconfig does:
> CONFIG_SH_KGDB=y
>
> and SH_KGDB does:
> select DEBUG_INFO
Indeed, thank you for explanation!
> Instead of editing the Kconfig file you should use the KCONFIG_ALLCONFIG trick.
It's not reliable.
The very same select will select DEBUG_INFO as usual.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-16 8:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-16 7:42 Immortal CONFIG_DEBUG_INFO=y Alexey Dobriyan
2008-11-16 7:49 ` Sam Ravnborg
2008-11-16 8:03 ` Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®