|
@@ -25,6 +25,9 @@
|
|
|
#include <command.h>
|
|
|
#include <version.h>
|
|
|
#include <linux/compiler.h>
|
|
|
+#ifdef CONFIG_SYS_COREBOOT
|
|
|
+#include <asm/arch/sysinfo.h>
|
|
|
+#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;
|
|
|
}
|
|
|
|