]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: use CONFIG_CC_VERSION_TEXT to construct LINUX_COMPILER macro
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 23 Apr 2020 14:23:54 +0000 (23:23 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 12 May 2020 04:28:33 +0000 (13:28 +0900)
commit91f8cdb6ade7d1887e7f35aaccc0e1b741a07a0d
tree7cc9c6c7533ac3904ec34897788a88098482d2b6
parent20a6f7e5572b9a2e0d9ba50bff5342f5ae30afc3
kbuild: use CONFIG_CC_VERSION_TEXT to construct LINUX_COMPILER macro

scripts/mkcompile_h runs $(CC) just for getting the version string.
Reuse CONFIG_CC_VERSION_TEXT for optimization.

For GCC, this slightly changes the version string. I do not think it
is a big deal as we do not have the defined format for LINUX_COMPILER.
In fact, the recent commit f2ffa6e6f020 ("kbuild: mkcompile_h:
Include $LD version in /proc/version") added the linker version.

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