Skip to contentSkip to conversation

slow module build--what am I doing wrong?

DISCUSSION Ben Pfaff 1 participant 2 messages Jan 30, 2007

lore
Share & tools
lore

Ben Pfaff

author
#0 lore raw

When I modify a source file or two that belong to a particular module, and then rebuild just that module with "make dir1/dir/module.ko" (e.g.), the build system spends a couple of minutes grinding away on "MODPOST" operations. Am I doing something wrong? Is there a way to avoid this? It slows down my build-and-test cycle quite a bit.

Thanks!

Signature · 3 lines
Ben Pfaff 
[email protected]
http://benpfaff.org
author
#1 lore raw
Quoted 6 lines · Ben Pfaff

When I modify a source file or two that belong to a particular module, and then rebuild just that module with "make dir1/dir/module.ko" (e.g.), the build system spends a couple of minutes grinding away on "MODPOST" operations. Am I doing something wrong? Is there a way to avoid this? It slows down my build-and-test cycle quite a bit.

I was privately emailed a suggestion to use "make M=dir1/dir" instead of "make dir1/dir/module.ko". It helps a great deal.

Signature · 3 lines
Ben Pfaff 
[email protected]
http://benpfaff.org