Building a non-debugging kernel

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Created page with 'Category:DocumentationCategory:Tutorials This wiki page will help you build your own non-debugging build kernel. Branched kernels are built with debugging enabled by def...')
 
(decodify.)
Line 29: Line 29:
 
When it completes the subdirectory <code> kernel/f14/x86_64 </code> (or i686 or whatnot) will have a kernel rpm with debugging disabled by default. These can be installed with, for example:
 
When it completes the subdirectory <code> kernel/f14/x86_64 </code> (or i686 or whatnot) will have a kernel rpm with debugging disabled by default. These can be installed with, for example:
  
* <code> kernel/f14/x86_64 # yum localinstall --nogpgcheck ./kernel-$version.rpm
+
* <code> kernel/f14/x86_64 # yum localinstall --nogpgcheck ./kernel-$version.rpm </code>
  
 
== Gotchas ==
 
== Gotchas ==
  
 
Please run a Fedora built debugging kernel when you report bugs, as they contain invaluable debugging information to assist developers.
 
Please run a Fedora built debugging kernel when you report bugs, as they contain invaluable debugging information to assist developers.

Revision as of 03:43, 27 August 2010


This wiki page will help you build your own non-debugging build kernel. Branched kernels are built with debugging enabled by default in the early stages of the release to assist developers.

Getting the source from git

First things first, you'll need the kernel fedpkg source, and the necessary build depends:

  • (as root) # yum install fedpkg fedora-packager rpmdevtools
  • # yum-builddep kernel
  • (as your user) $ fedpkg co -B kernel

This will create a kernel/ subdirectory hierarchy under your current working dir with a dir for each Fedora branch, the rawhide kernel will be located in the master branch.

Building a non-debugging kernel

The following example assumes building a kernel for F-14, which is currently based on the 2.6.35 stable series.

  • $ cd kernel/f14
  • kernel/f14 $ make release

This make target will modify your checkout of the F-14 source to generate both a kernel and kernel-debug rpms.

  • kernel/f14 $ fedpkg local

fedpkg local will chug away for a very long time (on most systems) building the kernels for your currently running architecture. See another article for how to generate an SRPM and do more complicated things like mock building.

When it completes the subdirectory kernel/f14/x86_64 (or i686 or whatnot) will have a kernel rpm with debugging disabled by default. These can be installed with, for example:

  • kernel/f14/x86_64 # yum localinstall --nogpgcheck ./kernel-$version.rpm

Gotchas

Please run a Fedora built debugging kernel when you report bugs, as they contain invaluable debugging information to assist developers.