This howto will help you create the system environment for building custom kernels and kernel modules.
First, you need to install the developer environment:
yum groupinstall "Development Tools"
If you are building a kernel module/driver, you will likely only need the kernel-devel package:
yum install kernel-devel
If you are building your own customer kernel, run:
yum install kernel-sourcecode