]> Git Repo - J-u-boot.git/blame - cmd/version.c
Merge branch 'next'
[J-u-boot.git] / cmd / version.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
6b8f5ad1
PT
2/*
3 * Copyright 2000-2009
4 * Wolfgang Denk, DENX Software Engineering, [email protected].
6b8f5ad1
PT
5 */
6
6b8f5ad1 7#include <command.h>
4e4bf944 8#include <display_options.h>
bdfb6d70 9#include <version_string.h>
09c2e90c 10#include <linux/compiler.h>
e56cdd77 11#ifdef CONFIG_SYS_COREBOOT
e35b6497 12#include <asm/cb_sysinfo.h>
e56cdd77 13#endif
6b8f5ad1 14
09140113
SG
15static int do_version(struct cmd_tbl *cmdtp, int flag, int argc,
16 char *const argv[])
6b8f5ad1 17{
6c519f2d
SG
18 char buf[DISPLAY_OPTIONS_BANNER_LENGTH];
19
20 printf(display_options_get_banner(false, buf, sizeof(buf)));
89ffa8db
AH
21#ifdef CC_VERSION_STRING
22 puts(CC_VERSION_STRING "\n");
23#endif
24#ifdef LD_VERSION_STRING
25 puts(LD_VERSION_STRING "\n");
26#endif
e56cdd77
SR
27#ifdef CONFIG_SYS_COREBOOT
28 printf("coreboot-%s (%s)\n", lib_sysinfo.version, lib_sysinfo.build);
29#endif
6b8f5ad1
PT
30 return 0;
31}
32
33U_BOOT_CMD(
34 version, 1, 1, do_version,
89ffa8db 35 "print monitor, compiler and linker version",
6b8f5ad1
PT
36 ""
37);
This page took 0.486705 seconds and 4 git commands to generate.