mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
kbuild: remove SUBDIRS support
Linux 5.3 is out. Remove the SUBDIRS support. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
13dc8c029c
commit
7e35b42591
20
Makefile
20
Makefile
|
@ -206,24 +206,8 @@ ifndef KBUILD_CHECKSRC
|
||||||
KBUILD_CHECKSRC = 0
|
KBUILD_CHECKSRC = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Use make M=dir to specify directory of external module to build
|
# Use make M=dir or set the environment variable KBUILD_EXTMOD to specify the
|
||||||
# Old syntax make ... SUBDIRS=$PWD is still supported
|
# directory of external module to build. Setting M= takes precedence.
|
||||||
# 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
|
|
||||||
|
|
||||||
ifeq ("$(origin M)", "command line")
|
ifeq ("$(origin M)", "command line")
|
||||||
KBUILD_EXTMOD := $(M)
|
KBUILD_EXTMOD := $(M)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue