From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] 2.6 kbuild inconsistent CONFIG_DEBUG_INFO usage?
Date: Thu, 28 Jul 2005 04:43:52 +0000 [thread overview]
Message-ID: <20050728044352.GA4161@us.ibm.com> (raw)
In-Reply-To: <hdage1thbneer1ucku4amfkjsq5tnlf50m@4ax.com>
[-- Attachment #1: Type: text/plain, Size: 2954 bytes --]
On 28.07.2005 [10:41:32 +1000], Grant Coady wrote:
> Hi there,
>
> 2.6.13-rc3-mm2 (cc: Russell King as lots of arms in there)
>
> linux-2.6.13-rc3-mm2b$ grep -r CONFIG_DEBUG_INFO *|cut -d: -f2-|sort|uniq -c|sort -nr
> 57 # CONFIG_DEBUG_INFO is not set
> 22 CONFIG_DEBUG_INFO=y
> 4 #ifdef CONFIG_DEBUG_INFO
> 2 ifdef CONFIG_DEBUG_INFO
> 2 #ifndef CONFIG_DEBUG_INFO
> 1 ifneq ($(CONFIG_DEBUG_INFO),y) <<== ??
> 1 ifeq ($(CONFIG_DEBUG_INFO),y) <<== ??
>
>
> linux-2.6.13-rc3-mm2b$ grep -r '($(CONFIG_DEBUG_INFO),y)' *
>
> arch/arm26/Makefile:ifeq ($(CONFIG_DEBUG_INFO),y)
> arch/x86_64/Makefile:ifneq ($(CONFIG_DEBUG_INFO),y)
I think the first can be
ifdef CONFIG_DEBUG_INFO
and the second
ifndef CONFIG_DEBUG_INFO
> Two Makefiles check for a value. The rest only check if [not] defined.
>
> ifdef CONFIG_DEBUG_INFO
> CFLAGS += -g
> AFLAGS += -g
> endif
>
> This a problem? I read somewhere setting to 'n' stops debug, that can't
> be right?
Read menuconfig:
CONFIG_DEBUG_INFO:
If you say Y here the resulting kernel image will include
debugging info resulting in a larger kernel image. Say Y here
only if you plan to debug the kernel.
If unsure, say N.
This basically is used for debugging purposes, changing the compiler
flags when you build your kernel (per arch's Makefile). Not sure what
you mean by "stops debug." That's a very vague statement wrt. the
kernel.
> Places setting it to 'y' are off the main path (for me):
>
> linux-2.6.13-rc3-mm2b$ grep -r CONFIG_DEBUG_INFO=y *
> arch/um/defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/pxa255-idp_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/h7202_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/mainstone_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/bast_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/lubbock_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/mx1ads_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/lpd7a404_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/s3c2410_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/badge4_defconfig:CONFIG_DEBUG_INFO=y
> arch/arm/configs/lpd7a400_defconfig:CONFIG_DEBUG_INFO=y
> arch/ppc/configs/ocotea_defconfig:CONFIG_DEBUG_INFO=y
> arch/ppc/configs/lite5200_defconfig:CONFIG_DEBUG_INFO=y
> arch/ppc/configs/luan_defconfig:CONFIG_DEBUG_INFO=y
> arch/m32r/opsput/defconfig.opsput:CONFIG_DEBUG_INFO=y
> arch/ia64/configs/sn2_defconfig:CONFIG_DEBUG_INFO=y
> arch/ia64/configs/sim_defconfig:CONFIG_DEBUG_INFO=y
> arch/v850/configs/rte-ma1-cb_defconfig:CONFIG_DEBUG_INFO=y
> arch/v850/configs/sim_defconfig:CONFIG_DEBUG_INFO=y
> arch/v850/configs/rte-me2-cb_defconfig:CONFIG_DEBUG_INFO=y
> arch/alpha/defconfig:CONFIG_DEBUG_INFO=y
> arch/arm26/defconfig:CONFIG_DEBUG_INFO=y
Were you asking a question with all of this? All of these are
defconfigs, which are basically machine specific config files (helps
with first build).
Thanks,
Nish
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-07-28 4:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-28 0:41 [KJ] 2.6 kbuild inconsistent CONFIG_DEBUG_INFO usage? Grant Coady
2005-07-28 4:43 ` Nishanth Aravamudan [this message]
2005-07-28 19:40 ` Grant Coady
2005-07-28 20:21 ` Domen Puncer
2005-07-28 20:38 ` Nishanth Aravamudan
2005-07-28 21:14 ` Grant Coady
2005-07-28 21:17 ` Grant Coady
2005-07-28 21:41 ` Domen Puncer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050728044352.GA4161@us.ibm.com \
--to=nacc@us.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.