Kernel Compilation Tutorial

Kevin Hobbs

Legal Notice

1. Introduction
2. rpmmacros
3. Get the Source
4. Install Source
5. Simple Rebuild
6. Apply Patches
7. Break I mean Fix .config
8. Build The Kernel
9. Install the Kernel RPM
10. Other Documents

1. Introduction

[Warning]Warning

I have absolutely no idea how to do this. I plan to learn as I write this document.

  • I intend to describe how to build a custom Linux kernel from a Fedora src.rpm as a regular user.

  • I intend to keep the resulting kernel as close as possible to the Fedora kernel.

  • I will be creating a kernel with the mga driver enabled so my examples will reflect that.

  • I do NOT mean this to be a detailed description of rpmbuild, specfiles, kernel configuration, or the proper way to make grilled cheese.