Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 06-21-2008, 12:50 PM   #1
Registered: Jun 2006
Distribution: Kubuntu Hardy
Posts: 94

Rep: Reputation: 15
How to build kernel RPM without rebuilding the whole thing every time

I want to do testing and tweaking of the Linux kernel code on my Fedora 9 system. The way it's set up, if I use rpmbuild -ba kernel.spec or run make rpm from the source directory, it rebuilds everything every time. Is there a way I can tweak it so it only builds what needs to be built while still giving me a usable kernel/initrd pair? I would think plenty of kernel hackers would know how to do this, or they just have really fast CPUs
Old 06-21-2008, 03:04 PM   #2
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 38
You could modify the make file but i don't think is simple, especially for kernel package.

You could saving time during the compilation but it would remain the problem of linking phase (which is much longer).
Old 06-22-2008, 09:15 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,634

Rep: Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393Reputation: 1393
I wouldn't think many would even attempt this if regularly updating the kernel - last run maybe to prove it all works as expected, and builds correctly.
I run my own config when testing (not Redhat/Fedora admittedly). No modules, no initrd, just built for my particular configuration. Doesn't take too long - quad core does help things along tho'. I am expecting to try on Fedora at some stage.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel rebuilding first time ... din Slackware 14 04-09-2008 09:06 AM
OK, time to build my first kernel but... aquaboot Debian 13 12-29-2006 06:56 PM
How to build a pre compiled kernel with source as a single rpm? sundarhere Linux - Kernel 0 10-26-2006 03:27 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 01:48 PM
Compiling kernel for first time, unsure about 1 thing Nigh Unstoppabl Slackware 1 07-15-2004 05:23 AM

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration