Re: [RFC] kbuild: make it possible to specify the module output dir

From: Michal Marek
Date: Wed Feb 18 2015 - 10:05:55 EST


On 2015-02-09 11:58, Kiran Raparthy wrote:
> From: Rom Lemarchand <romlem@xxxxxxxxxxx>
>
> kbuild: make it possible to specify the module output dir
>
> Make modinst_dir user-defined on the command line.
>
> This allows to do things like:
> make MODLIB=output/ modinst_dir=. modules_install
>
> to ensure all the .ko are in the output/ directory.

Please explain the use case and why it is needed. There are two
user-changeable variables used by modules_install:

INSTALL_MOD_PATH - prepended to /lib/modules/..., to allow installation
to a staging directory by non-root
INSTALL_MOD_DIR - for out-of-tree modules; specifies the subdirectory
of /lib/modules/.../ to put the modules under
(default: "extra").

The hierarchy used in the source tree is reflected under
/lib/modules/.../extra, but that should not be an issue.

Michal
--
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/