Why does it take so long to compile a module

Alex Hornung ahornung at gmail.com
Wed Oct 20 13:06:25 PDT 2010

On 20/10/10 20:31, Pratyush wrote:
> I just wrote a simple module. In declare module i wrote SI_ORDER_MIDDLE, wrote a
> Makefile  and included .include <bsd.kmod.mk>.
> Its almost 40 min compiling with verbose display. Is their a mechanism to speed
> it up? or a work around.
> Pratyush.

Please take a look at one of our modules in the source tree. Nothing
takes 40 minutes to build. The whole kernel takes <10 minutes on an
average machine. I'd venture to say that the average build time of a
1-file kmod is < 30 seconds.


More information about the Kernel mailing list