LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-21-2008, 11:50 AM   #1
JoeyAdams
Member
 
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, 02:04 PM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 37
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, 08:15 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,280

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
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.
 
  


Reply


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 08:06 AM
OK, time to build my first kernel but... aquaboot Debian 13 12-29-2006 05:56 PM
How to build a pre compiled kernel with source as a single rpm? sundarhere Linux - Kernel 0 10-26-2006 02:27 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus Suse/Novell 5 12-02-2004 12:48 PM
Compiling kernel for first time, unsure about 1 thing Nigh Unstoppabl Slackware 1 07-15-2004 04:23 AM


All times are GMT -5. The time now is 11:59 AM.

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