diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-09-09 05:55:57 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-09-25 00:36:49 +0900 |
commit | 6212804f2d78e86f15dba5b46a4065cbf1403cde (patch) | |
tree | 7ebd46f8e150824102e18c7a6d7e7722b4ae229e /Makefile | |
parent | 596b0474d3d9b1242eab713f84d8873f9887d980 (diff) | |
download | linux-stable-6212804f2d78e86f15dba5b46a4065cbf1403cde.tar.gz linux-stable-6212804f2d78e86f15dba5b46a4065cbf1403cde.tar.bz2 linux-stable-6212804f2d78e86f15dba5b46a4065cbf1403cde.zip |
kbuild: do not create built-in objects for external module builds
'make M=/path/to/your/external/module' creates a pointless built-in.a
in the top of the external module directory because KBUILD_BUILTIN is
set to 1.
Clear KBUILD_BUILTIN when we are building external modules so that
'make M=...' and 'make M=... modules' work equivalently.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1702,7 +1702,8 @@ else # KBUILD_EXTMOD # Install the modules built in the module directory # Assumes install directory is already created -# We are always building modules +# We are always building only modules. +KBUILD_BUILTIN := KBUILD_MODULES := 1 build-dirs := $(KBUILD_EXTMOD) |