summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-09-09 05:55:57 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-09-25 00:36:49 +0900
commit6212804f2d78e86f15dba5b46a4065cbf1403cde (patch)
tree7ebd46f8e150824102e18c7a6d7e7722b4ae229e /Makefile
parent596b0474d3d9b1242eab713f84d8873f9887d980 (diff)
downloadlwn-6212804f2d78e86f15dba5b46a4065cbf1403cde.tar.gz
lwn-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--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97b1dae1783b..744b6c664404 100644
--- a/Makefile
+++ b/Makefile
@@ -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)