]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: pass KBUILD_MODFILE when compiling builtin objects
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 19 Dec 2019 08:33:28 +0000 (17:33 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 6 Jan 2020 17:18:39 +0000 (02:18 +0900)
commit07514059eef428bf9f2e08c41a5b84285261f57f
tree7d850c9a98fc520feb9acb2577dc471a397f896f
parent630e698ee4c5dd9a07775ab8bde62809d969d4db
kbuild: pass KBUILD_MODFILE when compiling builtin objects

When compiling, Kbuild passes KBUILD_BASENAME (basename of the object)
and KBUILD_MODNAME (basename of the module).

This commit adds another one, KBUILD_MODFILE, which is the path of
the module. (or, the path of the module it would end up in if it were
compiled as a module.)

The next commit will use this to generate modules.builtin without
tristate.conf.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.lib