1 // SPDX-License-Identifier: GPL-2.0+
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 #include <display_options.h>
9 #include <version_string.h>
10 #include <linux/compiler.h>
11 #ifdef CONFIG_SYS_COREBOOT
12 #include <asm/cb_sysinfo.h>
15 static int do_version(struct cmd_tbl
*cmdtp
, int flag
, int argc
,
18 char buf
[DISPLAY_OPTIONS_BANNER_LENGTH
];
20 printf(display_options_get_banner(false, buf
, sizeof(buf
)));
21 #ifdef CC_VERSION_STRING
22 puts(CC_VERSION_STRING
"\n");
24 #ifdef LD_VERSION_STRING
25 puts(LD_VERSION_STRING
"\n");
27 #ifdef CONFIG_SYS_COREBOOT
28 printf("coreboot-%s (%s)\n", lib_sysinfo
.version
, lib_sysinfo
.build
);
34 version
, 1, 1, do_version
,
35 "print monitor, compiler and linker version",