From: Stefan Reinauer Date: Fri, 14 Dec 2012 13:05:18 +0000 (+0000) Subject: x86: Add coreboot version to u-boot's version command X-Git-Tag: v2013.01-rc3~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e56cdd778ca08fc8c32ffc3ddebbb6102519f344;p=u-boot x86: Add coreboot version to u-boot's version command Since U-Boot runs from coreboot on x86, the Coreboot version is an important part of the boot state. This version information is available in the coreboot tables, so print it when the 'version' command is used. Signed-off-by: Simon Glass --- diff --git a/common/cmd_version.c b/common/cmd_version.c index ab4c560ae0..e8f40d3ed1 100644 --- a/common/cmd_version.c +++ b/common/cmd_version.c @@ -25,6 +25,9 @@ #include #include #include +#ifdef CONFIG_SYS_COREBOOT +#include +#endif const char __weak version_string[] = U_BOOT_VERSION_STRING; @@ -37,7 +40,9 @@ static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #ifdef LD_VERSION_STRING puts(LD_VERSION_STRING "\n"); #endif - +#ifdef CONFIG_SYS_COREBOOT + printf("coreboot-%s (%s)\n", lib_sysinfo.version, lib_sysinfo.build); +#endif return 0; }