Re: kernel compiling
Russell King - ARM Linux <[email protected]>
| Newsgroups | gmane.linux.ports.arm.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Apr 29, 2009 at 03:41:58PM +0600, Alexei Babich wrote: > Good afternoon. > I wonder how I can compile the kernel having possibility of debugging it. > It is well known that comfortable debug process require such compilation parameters as "-g -O0". > But the Makefile contains only "-Os" and "-O2". > Trying replace -O2 with -O0 I got an error at some stage of building: -O0 is not supported with the Linux kernel. The kernel relies heavily upon the compilers optimisation. ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php