diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-07-25 03:35:56 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-08-10 08:23:39 +0900 |
commit | d8285639550578a1bf2d102391d1a9e08e0586ca (patch) | |
tree | addd167e43aea63760e7e8d84e2c07b253b73e82 /Makefile | |
parent | a325db2d8f1d7e33cdc0152b61c3f14fb06f9893 (diff) | |
download | lwn-d8285639550578a1bf2d102391d1a9e08e0586ca.tar.gz lwn-d8285639550578a1bf2d102391d1a9e08e0586ca.zip |
kbuild: do not require sub-make for separate output tree builds
As explained in commit 3204a7fb98a3 ("kbuild: prefix $(srctree)/ to some
included Makefiles"), I want to stop using --include-dir some day.
I already fixed up the top Makefile, but some arch Makefiles (mips, um,
x86) still include check-in Makefiles without $(srctree)/.
Fix them up so 'need-sub-make := 1' can go away for this case.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -191,10 +191,9 @@ endif ifneq ($(abs_srctree),$(abs_objtree)) # Look for make include files relative to root of kernel src # -# This does not become effective immediately because MAKEFLAGS is re-parsed -# once after the Makefile is read. We need to invoke sub-make. +# --included-dir is added for backward compatibility, but you should not rely on +# it. Please add $(srctree)/ prefix to include Makefiles in the source tree. MAKEFLAGS += --include-dir=$(abs_srctree) -need-sub-make := 1 endif ifneq ($(filter 3.%,$(MAKE_VERSION)),) |