How to rebuild kernel-module packages ?
When rebuilding kernel-module packages, it is important to have the correct build environment set up. You need to have the kernel-source package installed. If you have several kernel-source packages installed, you have to tell rpmbuild which one to use: rpmbuild –rebuild –define ‘kernel 2.4.21-15.0.4.EL’ package.src.rpm If you don’t do this, rpmbuild may take the last one that rpm -q returns. If you’re simply rebuilding against the current kernel, this should suffice: rpmbuild –rebuild –define ‘kernel $(uname -r)’ –target $(uname -m) package.src.rpm Z.