kbuild: do not create built-in objects for external module builds
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 8 Sep 2020 20:55:57 +0000 (05:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 24 Sep 2020 15:36:49 +0000 (00:36 +0900)
commit6212804f2d78e86f15dba5b46a4065cbf1403cde
tree7ebd46f8e150824102e18c7a6d7e7722b4ae229e
parent596b0474d3d9b1242eab713f84d8873f9887d980
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>
Makefile