[PlanetCCRMA] Recompile kernel from src rpm

Peter Lutek plutek@infinity.net
Mon Nov 29 11:58:01 2004

On Mon, 2004-11-29 at 13:45, Rick B wrote:
> Hi all,
>     I want to recompile the kernel to 
> not include some things built into the kernel (agpgart,etc).
> Since the kernel-source isn't available on the repository what is the 
> best way to do this? Sorry for my ignorance. If you have a link that 
> explains how please post it. I have kernel- 
> and I know there must be a way to unpack this and recompile it.
>                 Rick B

rpm -Uvh kernel-
cd /usr/src/redhat/SOURCES
bunzip2 linux-
tar -xvf linux-

this yields the full source tree under
/usr/src/redhat/SOURCES/linux-, with all the configs and patches
under /usr/src/redhat/SOURCES

at this point, i am confused. has the source under ...../linux-
been patched already, or do we need to re-patch? if we need to patch, is
there a doc somewhere which outlines the order and content of patching? 

my specific issue is to attempt to get acpi functional (currently some
of the /proc/acpi/ directories are empty). i don't see the acpi patch in
..../SOURCES/ , so i'll have to apply that patch, but there may be
issues about when in the patch sequence i apply that one.