Compile stock kernel

Scott Ruckh sruckh at gemneye.org
Thu Jul 20 04:03:47 UTC 2006


I am trying to make make a kernel from the stock RHEL4 sources.  I do not
want to download vanilla sources and "roll-my-own" kernel.

I am trying modify the kernel sources (time synch issues) as to work as a
vmware guest OS.  I have gotten it to work with vanilla sources but I
would like to stick with stock kernels.

I have downloaded the kernel-2.6*.src.rpm hoping this is the right place
to start.  I have tried using 'rpmbuild --recompile --target=i686
*.src.rpm' but I believe this will just render an RPM of the kernel.  This
will not allow me to modify the sources before making the kernel.

I have found directions for rebuilding the entire distro and remaking the
install CDs, but I just want to compile a stock kernel making very few
modifications to the kernel sources.

I know the answer does not lie within the kernel-devel packages as those
just contain the kernel header files.  I need the actual kernel sources
for the stock kernel (with its patches), and not the vanilla sources.

Does anyone have a link to a How-To for this procedure?

Thanks.
-- 

Scott





More information about the redhat-list mailing list