先安装kernel-<version>.src.rpm
rpm -Uvh kernel-<version>.src.rpm
然后cd /usr/src/redhat/SPEC
rpmbuild -bp --target $(arch) kernel*.spec
cd /usr/src/SOURCE/kernel<version>
mv linux-<version> /usr/src
ln -s linux-<version> linux
cd linux
make config
make zImage
make modules
make modules_install
make install