Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-23-2010, 06:07 AM   #1
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.


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 :-

make menuconfig
make rpm-pkg

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,

Old 04-10-2010, 11:20 AM   #2
Registered: May 2001
Posts: 29,361
Blog Entries: 55

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

Old 03-15-2011, 08:38 PM   #3
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

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.


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


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

All times are GMT -5. The time now is 10:30 AM.

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