diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-03-30 13:04:14 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-04-02 16:27:15 +0200 |
commit | 25b146c5b8ceecd43c311552d325a4e403c639f2 (patch) | |
tree | e8d022671481b5add2d94347c8f6355e24178f8f /scripts | |
parent | kbuild: pass $(MAKECMDGOALS) to sub-make as is (diff) | |
download | linux-25b146c5b8ceecd43c311552d325a4e403c639f2.tar.xz linux-25b146c5b8ceecd43c311552d325a4e403c639f2.zip |
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')
0 files changed, 0 insertions, 0 deletions