[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Compile kernel.rpm

On Tue, 2004-04-27 at 10:30 -0300, Lercio Teotonio Gontijo wrote:

> Hello All
> I download
> kernel-2.6.5-1.327.src.rpm
> and install it with rpm -ivh kernel-2.6.5-1.327.src.rpm 
> then I compile it with rpmbuild -ba /usr/src/redhat/SPEC/kernel-2.6.spec and 
> the kernel-2.6.5-1.327.rpm is not created.
> Then I install the kernel-source-2.6.5-1.327.rpm created by step below and
> execute commands:
> make xconfig (to create .config file)
> make rpm (to create kernel.spec file)
> Please, help me how to correct way for compile the fedora kernel
> I also download the linux-2.6.4.tar.bz2 and try same process
It's been awhile since I've rebuilt RH kernels from the SRPMS, but the
easiest way in the past (and I'm sure it still works) would be:

rpmbuild --rebuild --target i386 kernel-2.6.5-1.332.src.rpm
rpmbuild --rebuild --target i686 kernel-2.6.5-1.332.src.rpm

Now in /usr/src/redhat/RPMS/i686 would be your kernel (assuming you want
the i686.  If you want i586, substitute appropriately) and the
kernel-source package will be in /usr/src/redhat/RPMS/i386

I last did this during the 2.4 series RH kernels, the 2.6 ones may be
different, though they do not appear to be.

David T Hollis <dhollis davehollis com>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]