Re: [PATCH] make make install install modules too

From: Matthew Wilcox
Date: Sat Sep 25 2004 - 20:37:04 EST


On Fri, Sep 17, 2004 at 01:38:51PM -0400, Gene Heskett wrote:
> This is not a good patch IMO. Many of us do things with scripts to
> drive the compile process, either in the name of repeatability or
> consistency. These scripts may step out of the src tree and go make
> something else (lm_sensors comes to mind when it wasn't part of the
> kernel) whose output goes into the /lib/modules/version/ directory so
> that by the time the make modules_install runs, everything is already
> in place for the automatic depmod the modules_install does. We
> *could* work around it by re-adding the depmod lines to our scripts,
> but it seems that might be called a kludge too.

Documentation/kbuild/modules.txt answers how to do this "right". In any
case, there's nothing to stop you changing your scripts from
"make install && do_my_special_thing && make modules_install"
to
"make kernel_install && do_my_special_thing && make modules_install"

--
"Next the statesmen will invent cheap lies, putting the blame upon
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince
himself that the war is just, and will thank God for the better sleep
he enjoys after this process of grotesque self-deception." -- Mark Twain
-
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/