[Buildroot] Building debug version of kernel

Steven J. Hill sjhill at realitydiluted.com
Fri Jul 13 17:48:44 UTC 2007


> Is editing the top-level Linux Makefile the standard method for my host
> machine to build a debug version (i.e. with "-g -O0" CFLAGS) of the Linux
> 2.6 kernel?  If so, should I make these flag changes to CFLAGS_KERNEL or
> HOSTCFLAGS or both?
> 
There is a configuration option under 'Kernel hacking' in the Linux
configuration system to turn on debugging symbols. Was there some
reason this does not work?

> The build output only shows the format "CC <object-file-name>" without
> flags, so I can't see what it's actually doing.
> 
If you add 'V=1' to your 'make vmlinux' target area in the makefile, you
can see the verbose output of the compiling, linking, etc.

-Steve



More information about the buildroot mailing list