Compile kernel.rpm
David T Hollis
dhollis at davehollis.com
Tue Apr 27 18:19:13 UTC 2004
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 at davehollis.com>
More information about the devel
mailing list