LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-23-2010, 05:07 AM   #1
maxvonseibold
Member
 
Registered: Mar 2006
Location: Oxford, UK.
Distribution: Debian, Ubuntu, RHEL5, OSX
Posts: 41

Rep: Reputation: 15
Retaining kernel-headers for later use after building rpm-pkg's on Open Suse.


Hello,

We needed to compile a custom Kernel provided by a hardware vendor and would like to produce RPM files for this kernel so that we can subsequently deploy them to other host machines quickly.

We have successfully built the kernel using the standard series of commands :-

patch
make menuconfig
make rpm-pkg
mkinitrd


However, once our new kernel is deployed we cannot compile any source code because we not have the kernel header files for this custom kernel.

My colleague was able to produce these by manually building the kernel with 'make bzImage modules' but tells me that 'make rpm-pkg' does produce the header files during the build, but but not retain them.

My question is can 'make rpm-pkg' be told to retain the header files along with the RPM files it creates so that these are available for compiling software on the machines running the custom kernel.


Sorry if this is an obvious question. I have tried searching prior to posting this.


Many Thanks,



Max.
 
Old 04-10-2010, 10:20 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,159
Blog Entries: 54

Rep: Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796Reputation: 2796
I thought 'make rpm-pkg' made .src.rpms while it built the .rpm... If it doesn't (do check) then you could run 'make -n rpm-pkg' to see what commands it runs, create a shell script with those commands and substitute the 'rpmbuild' line to build you the .src.rpm (should be the "-bs" switch AFAIK). Not the most elegant way of doing things but it shouldn't be an impossible task either.


//NTLB
 
Old 03-15-2011, 07:38 PM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
How did you go with this maxvonseibold

The src.rpm created just contains a tarball of the source files and a kernel.spec file. Not bad for rebuilding the kernel but does not serve the need of building other software that needs kernel source.

I have created SRC RPMs manually by unpacking this tarball and making my own spec file but I too was hoping there is way/command in the "make rpm" stage.

Thanks

Last edited by DaveQB; 03-15-2011 at 07:38 PM. Reason: I meant SRC RPMs
 
  


Reply

Tags
kernel headers


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-headers rpm for Fedora Core 3 saleem_ak Fedora 1 04-09-2009 03:13 AM
rpm with kernel headers janos Suse/Novell 2 05-29-2006 01:31 PM
building kernel RPM problems mindcry Linux - Software 1 08-12-2004 08:39 AM
Building kernel rpm with acl support clancyian Red Hat 2 07-27-2004 03:16 PM
Can I use kernel-headers rpm for RH7.2 on RH9? basse- Red Hat 2 03-15-2004 12:50 AM


All times are GMT -5. The time now is 04:31 PM.

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