Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-17-2008, 07:06 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 19

Rep: Reputation: 0
Rebuild devel-kernel from src

I know this is possible since the devel-kernel always has the main src listed as its source. However I've been unable to find any resources describing how to do this. I've extracted everything from the main source rpm, so I have the main kernel plus all the patches laid out in a directory. I'm just wondering if theres a simple command to:
1) Apply all the patches
2) Build just a devel-kernel to target the different platforms.

The only reason I want to do this is that I want to build a custom kernel to boot from - which I can do no problem, but only install a devel (just the headers), so then I can move the main source tree off and not leave it in the /usr/src. This way modules don't complain and I don't have to constantly edit utsrelease all the time.

Thanks for any replies.
Old 07-17-2008, 12:18 PM   #2
LQ Newbie
Registered: Jan 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Messed around with this somemore and of course the moment after I post it, I figure why not check the spec file. Well it turns out there is a devel build path in there but I can't seem to get it to execute, something to do with %kernel_reqprovconf has an empty body. As that I havent done any work with spec files aside from issue rpm commands on them -- does anyone know what that error means?
Old 07-18-2008, 08:13 AM   #3
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
The kernel sources have all include files (headers) separated from the source files, so it shouldn't be that difficult to remove all unneeded files after a successful build by hand.
Unless that you want create RPM packages for your own kernels.

As a matter of fact, some distros (Fedora for example) have different packages for 'kernel', 'kernel-devel' and 'kernel-headers'. 'Kernel' has the binaries, 'kernel-devel' has all the sources (including the headers) I assume, and 'kernel-headers' has only the headers from the source package.

Linux Archive

Last edited by FranDango; 09-20-2008 at 06:26 AM.


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
problems trying to rebuild src rpm pxy20 Linux - Newbie 1 05-27-2006 07:25 AM
Help rebuild src freed Red Hat 1 05-10-2006 12:18 PM
fetchmail-6.2.5-6.el4.2.src.rpm/ rebuild error louisb Linux - Enterprise 0 07-28-2005 02:16 PM
Failure to rebuild kernel-2.4.18-e.37.src.rpm under 2.1AS RedHatDude Red Hat 0 09-20-2003 09:01 PM
a SRC rebuild problem tolfsen Linux - Software 0 03-13-2003 05:12 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 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