kconfig: show compiler version text in the top comment
authorTom Rini <trini@konsulko.com>
Mon, 18 May 2020 18:48:00 +0000 (14:48 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 1 Jul 2020 15:48:05 +0000 (11:48 -0400)
This is a side-port of commit 21c54b774744 ("kconfig: show compiler
version text in the top comment") from Linux:

"The kernel configuration phase is now tightly coupled with the compiler
in use.  It will be nice to show the compiler information in Kconfig."

We have already had the required makefile logic for this and had not
included printing the value in various user and file visible places.

Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Kconfig

diff --git a/Kconfig b/Kconfig
index 7ba2665..99bc5fa 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -5,6 +5,8 @@
 #
 mainmenu "U-Boot $(UBOOTVERSION) Configuration"
 
+comment "Compiler: $(CC_VERSION_TEXT)"
+
 source "scripts/Kconfig.include"
 
 # Allow defaults in arch-specific code to override any given here