mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-28 01:22:20 +00:00
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>
This commit is contained in:
parent
c9cb009560
commit
89ffa8dbb5
2 changed files with 12 additions and 1 deletions
|
@ -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",
|
||||
""
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue