How to rebuild kernel on Linux

Start X
>cd /usr/src/linux-2.4

>make mrproper
>make xconfig
Edit your prerences and save
>make dep;make clean;make bzImage
>make modules

>make module_install

Check you /boot directory see your Grub configuration file or /etc/lilo.conf

Backup current modules:
>cd /lib/modules
>mv 2.4.xx 2.4.xx-working
>cd /usr/src/linux-2.4

>make install

review your Grub or /etc/lilo.conf
Patch
Download the patch, uncompress, go to source directory
patch -p1 < /path/to/patch/file
or
patch -p1 -i /path/to/patch/file
Make a binary rpm kernel
make an .rpmmacros (note the dot (.)) file in your home directory containing this line:
 

code:

%debug_package %{null}
>make rpm