diff options
| author | Alexander Holler <holler@ahsoftware.de> | 2011-01-19 00:24:40 +0100 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-02-02 21:56:39 +0100 | 
| commit | 89ffa8dbb5bd0552f5f3399f4430a4c97f4d50d4 (patch) | |
| tree | 0103652e012b5fd2ccf8fbe6e134776970bf16f7 /common | |
| parent | c9cb009560af68349b3c492a9ca88776e442c2ce (diff) | |
| download | olio-uboot-2014.01-89ffa8dbb5bd0552f5f3399f4430a4c97f4d50d4.tar.xz olio-uboot-2014.01-89ffa8dbb5bd0552f5f3399f4430a4c97f4d50d4.zip | |
Print compiler and linker version with the version command
After years of unsuccessful research I've finally shamelessly stolen other
peoples intellectual properties to present the all-new and world-changing
updated version command:
-
U-Boot>> version
U-Boot 2010.12-00014-g7435056-dirty (Jan 18 2011 - 23:19:38)
MyBoard
gcc (GCC) 0.42 (Distro foobar)
GNU ld (GNU Binutils) 0.314159265
-
May the toolchain bugs rest in peace.
Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_version.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/common/cmd_version.c b/common/cmd_version.c index 7d1b495c5..83cb11c6f 100644 --- a/common/cmd_version.c +++ b/common/cmd_version.c @@ -23,18 +23,25 @@  #include <common.h>  #include <command.h> +#include <version.h>  extern char version_string[];  int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])  {  	printf("\n%s\n", version_string); +#ifdef CC_VERSION_STRING +	puts(CC_VERSION_STRING "\n"); +#endif +#ifdef LD_VERSION_STRING +	puts(LD_VERSION_STRING "\n"); +#endif  	return 0;  }  U_BOOT_CMD(  	version,	1,		1,	do_version, -	"print monitor version", +	"print monitor, compiler and linker version",  	""  ); |