]> 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)
commit0b6a13ce334127350d1d10989f73cfe565a48954
tree7cc9c6c7533ac3904ec34897788a88098482d2b6
parent032302b99090d8aecc7dd4f9b24b9a4d91a71130
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 fbdbe0e42057 ("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