diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-11-10 10:34:35 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-11-28 08:11:55 +0900 |
commit | 11b3d5175e6bc3779159228e6077be202d2b0069 (patch) | |
tree | 8b85efcc9a4538c3e23c0beb7145f6a55f90f96d /block | |
parent | bad6beb2c0bb982b830f592a7b3e3eee76cbb85a (diff) | |
download | lwn-11b3d5175e6bc3779159228e6077be202d2b0069.tar.gz lwn-11b3d5175e6bc3779159228e6077be202d2b0069.zip |
kbuild: support building external modules in a separate build directory
There has been a long-standing request to support building external
modules in a separate build directory.
This commit introduces a new environment variable, KBUILD_EXTMOD_OUTPUT,
and its shorthand Make variable, MO.
A simple usage:
$ make -C <kernel-dir> M=<module-src-dir> MO=<module-build-dir>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions