||09-12-2007 08:59 AM
Rebuilding Linux kernel in Fedora 7 without recompiling everything
I built an i686 binary of the Linux kernel under Fedora 7 after installing the SRPM, then going to /usr/src/redhat/SPECS and typing rpmbuild -ba --target=i686 kernel-2.6.spec .
I made a modification to one source file (in drivers/acpi/osl.c) and I want to rebuild the kernel to test it. If I'm not mistaken, rpm -ba... will completely rebuild everything, and 'make' inside the /usr/src/redhat/BUILD/kernel-2.6.22 directory will probably not package the kernel like rpm -ba does. How do I recompile this small part without causing it to spend a dozen hours rebuilding the entire kernel + modules?