summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-09-21 16:05:41 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-10-01 09:21:21 +0900
commit7e35b42591c058b91282f95ce3b2cf0c05ffe93d (patch)
tree3561e59f1d33fc698f6fb85e45b1fa62d35b42a2
parent13dc8c029cabf52ba95f60c56eb104d4d95d5889 (diff)
downloadlwn-7e35b42591c058b91282f95ce3b2cf0c05ffe93d.tar.gz
lwn-7e35b42591c058b91282f95ce3b2cf0c05ffe93d.zip
kbuild: remove SUBDIRS support
Linux 5.3 is out. Remove the SUBDIRS support. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-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
KBUILD_CHECKSRC = 0
endif
-# Use make M=dir to specify directory of external module to build
-# Old syntax make ... SUBDIRS=$PWD is still supported
-# Setting the environment variable KBUILD_EXTMOD take precedence
-ifdef SUBDIRS
- $(warning ================= WARNING ================)
- $(warning 'SUBDIRS' will be removed after Linux 5.3)
- $(warning )
- $(warning If you are building an individual subdirectory)
- $(warning in the kernel tree, you can do like this:)
- $(warning $$ make path/to/dir/you/want/to/build/)
- $(warning (Do not forget the trailing slash))
- $(warning )
- $(warning If you are building an external module,)
- $(warning Please use 'M=' or 'KBUILD_EXTMOD' instead)
- $(warning ==========================================)
- KBUILD_EXTMOD ?= $(SUBDIRS)
-endif
-
+# Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
+# directory of external module to build. Setting M= takes precedence.
ifeq ("$(origin M)", "command line")
KBUILD_EXTMOD := $(M)
endif