You will need to get the source RPM for the kernel that you are looking for. You should be able to find it at one of these URLs.
##### For RHEL3 #####
http://updates.redhat.com/enterprise/3ES/en/os/SRPMS/
##### For RHEL4 #####
http://updates.redhat.com/enterprise/4ES/en/os/SRPMS/
You will download and install the source RPM. Then hop into the SPECS directory.
CODE
cd /usr/src/redhat/SPECS
Then rebuild the kernel packages.
CODE
rpmbuild -bb --targate=<YOUR PLATFORM> kernel-<VERSION>.spec
Where
'<YOUR PLATFORM>' is either
'i686' or
'x86_64'. Once the build completes, the kernel packages will be in the
'/usr/src/redhat/RPMS/<YOUR PLATFORM>/' directory.
Install the needed packages with the 'rpm -i' command.