diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-11-21 00:04:18 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-06-17 19:37:11 -0400 |
commit | e18589b95d664b82d46669acc840037c35906ff1 (patch) | |
tree | f59c655b33f79275c6eb5cf91b868c4c5ece124a | |
parent | ab5b4f1c8d1bd2c8548cb1fee0f8108881f4b505 (diff) | |
download | u-boot-WIP/kbuild-resync-v5.0.zip u-boot-WIP/kbuild-resync-v5.0.tar.gz u-boot-WIP/kbuild-resync-v5.0.tar.bz2 |
kbuild: announce removal of SUBDIRS if usedWIP/kbuild-resync-v5.0
SUBDIRS has been kept as a backward compatibility since
commit ("[PATCH] kbuild: external module support") in 2002.
We do not need multiple ways to do the same thing, so I will remove
SUBDIRS after the Linux 5.3 release. I cleaned up in-tree code, and
updated the document so that nobody would try to use it.
Meanwhile, display the following warning if SUBDIRS is used.
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> # for scx200_docflash.c
Acked-by: Guenter Roeck <linux@roeck-us.net> # for scx200_wdt.c
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -211,6 +211,10 @@ endif # 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 Please use 'M=' or 'KBUILD_EXTMOD' instead) + $(warning ==========================================) KBUILD_EXTMOD ?= $(SUBDIRS) endif |