diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-09-21 03:05:41 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-09-30 20:21:21 -0400 |
commit | 7e35b42591c058b91282f95ce3b2cf0c05ffe93d (patch) | |
tree | 3561e59f1d33fc698f6fb85e45b1fa62d35b42a2 /Makefile | |
parent | 13dc8c029cabf52ba95f60c56eb104d4d95d5889 (diff) |
kbuild: remove SUBDIRS support
Linux 5.3 is out. Remove the SUBDIRS support.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -206,24 +206,8 @@ ifndef KBUILD_CHECKSRC | |||
206 | KBUILD_CHECKSRC = 0 | 206 | KBUILD_CHECKSRC = 0 |
207 | endif | 207 | endif |
208 | 208 | ||
209 | # Use make M=dir to specify directory of external module to build | 209 | # Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the |
210 | # Old syntax make ... SUBDIRS=$PWD is still supported | 210 | # directory of external module to build. Setting M= takes precedence. |
211 | # Setting the environment variable KBUILD_EXTMOD take precedence | ||
212 | ifdef SUBDIRS | ||
213 | $(warning ================= WARNING ================) | ||
214 | $(warning 'SUBDIRS' will be removed after Linux 5.3) | ||
215 | $(warning ) | ||
216 | $(warning If you are building an individual subdirectory) | ||
217 | $(warning in the kernel tree, you can do like this:) | ||
218 | $(warning $$ make path/to/dir/you/want/to/build/) | ||
219 | $(warning (Do not forget the trailing slash)) | ||
220 | $(warning ) | ||
221 | $(warning If you are building an external module,) | ||
222 | $(warning Please use 'M=' or 'KBUILD_EXTMOD' instead) | ||
223 | $(warning ==========================================) | ||
224 | KBUILD_EXTMOD ?= $(SUBDIRS) | ||
225 | endif | ||
226 | |||
227 | ifeq ("$(origin M)", "command line") | 211 | ifeq ("$(origin M)", "command line") |
228 | KBUILD_EXTMOD := $(M) | 212 | KBUILD_EXTMOD := $(M) |
229 | endif | 213 | endif |