summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-09-21 03:05:41 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-09-30 20:21:21 -0400
commit7e35b42591c058b91282f95ce3b2cf0c05ffe93d (patch)
tree3561e59f1d33fc698f6fb85e45b1fa62d35b42a2 /Makefile
parent13dc8c029cabf52ba95f60c56eb104d4d95d5889 (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--Makefile20
1 files changed, 2 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 7452174f5b21..779c9c9b9820 100644
--- a/Makefile
+++ b/Makefile
@@ -206,24 +206,8 @@ ifndef KBUILD_CHECKSRC
206 KBUILD_CHECKSRC = 0 206 KBUILD_CHECKSRC = 0
207endif 207endif
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
212ifdef 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)
225endif
226
227ifeq ("$(origin M)", "command line") 211ifeq ("$(origin M)", "command line")
228 KBUILD_EXTMOD := $(M) 212 KBUILD_EXTMOD := $(M)
229endif 213endif