Re: slow module build--what am I doing wrong?

From: Ben Pfaff
Date: Mon Jan 29 2007 - 21:05:38 EST


Ben Pfaff <blp@xxxxxxxxxxxxxxx> writes:

> 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.
--
Ben Pfaff
blp@xxxxxxxxxxxxxxx
http://benpfaff.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/