Rebuild one driver directory with make M=
Rebuild only one driver directory on Linux 6.12 with make M=, so a one-line fix does not send the whole tree back through the compiler.
You changed one file in an Ethernet driver and do not want to wait for a full make modules. Pass the directory to Kbuild with M= and it descends only there. The tree must already be configured and built once, because M= relies on the generated headers and Module.symvers from that earlier build.
make M=drivers/net/ethernet/intel/e1000 modules CC [M] drivers/net/ethernet/intel/e1000/e1000_main.o
LD [M] drivers/net/ethernet/intel/e1000/e1000.o
MODPOST drivers/net/ethernet/intel/e1000/Module.symvers
CC [M] drivers/net/ethernet/intel/e1000/e1000.mod.o
LD [M] drivers/net/ethernet/intel/e1000/e1000.koThe listing is for a tree where only e1000_main.c changed, and Kbuild skipped every object that was already current. This is the same mechanism that builds out-of-tree modules, described in the Kbuild external modules document, pointed at a directory inside the tree. The directory must name modules, so a symbol set to y builds nothing here. Run a plain make before you boot the result, because M= never relinks vmlinux.