Recompiling kernel src rpm with config changes?

Derek Atkins warlord at MIT.EDU
Wed Jun 28 13:52:07 EDT 2006


rpm -ivh kernel...src.rpm
edit your config
rpmbuild -ba /usr/src/redhat/SPECS/kernel.spec

-derek

Quoting John Abreau <jabr at blu.org>:

> I'm trying to rebuild a kernel on CentOS 4.3, and I get a bunch
> of errors when I try to use the kernel-devel rpm. Rebuilding
> the source rpm with
>
>    rpmbuild --rebuild kernel-2.6.9-34.0.1.EL.src.rpm
>
> works fine, but that builds it with the default .config.
>
> Is there a way to tell rpmbuild to use a different config file
> when rebuilding the kernel?  Is there any option other than
> building it all manually? The source rpm includes a lot of
> patches, and I basically want to keep everything the same except
> for the specific options I'm changing.
>
>
> --
> John Abreau / Executive Director, Boston Linux & Unix
> ICQ 28611923 / AIM abreauj / JABBER jabr at jabber.org / YAHOO abreauj
> Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
> PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
>



-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available




More information about the Discuss mailing list