summaryrefslogtreecommitdiff
path: root/scripts/mkmakefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-30 15:04:14 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-04-02 17:27:15 +0300
commit25b146c5b8ceecd43c311552d325a4e403c639f2 (patch)
treee8d022671481b5add2d94347c8f6355e24178f8f /scripts/mkmakefile
parent6b1a9a02c72fdb6e1d67949bb01b66e07d88ace9 (diff)
downloadlinux-25b146c5b8ceecd43c311552d325a4e403c639f2.tar.xz
kbuild: allow Kbuild to start from any directory
Kbuild always runs in the top of the output directory. If Make starts in the source directory with O=, it relocates the working directory to the location specified by O=. Also, users can start build from the output directory by using the Makefile generated by scripts/mkmakefile. With a little more effort, Kbuild will be able to start from any directory path. This commit allows to specify the source directory by using the -f option. For example, you can do: $ cd path/to/output/dir $ make -f path/to/source/dir/Makefile Or, for the equivalent behavior, you can do: $ make O=path/to/output/dir -f path/to/source/dir/Makefile KBUILD_SRC is now deprecated. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Kieran Bingham <kbingham@kernel.org>
Diffstat (limited to 'scripts/mkmakefile')
0 files changed, 0 insertions, 0 deletions