LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-17-2008, 06:06 AM   #1
dizowned
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, 11:18 AM   #2
dizowned
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, 07:13 AM   #3
FranDango
Member
 
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 05:26 AM.
 
  


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


All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration