diff options
| author | Simon Glass <sjg@chromium.org> | 2021-06-28 02:51:04 +0300 |
|---|---|---|
| committer | Bin Meng <bmeng.cn@gmail.com> | 2021-07-15 14:50:12 +0300 |
| commit | e5bfcab97b3ceaf162c20d94203cc8efa7fea3ff (patch) | |
| tree | d9cba60c1387a73fb9a34401b673e70b5c84ad21 | |
| parent | 7052968707b2c16da6b9c43aa058435d2932eb82 (diff) | |
| download | u-boot-e5bfcab97b3ceaf162c20d94203cc8efa7fea3ff.tar.xz | |
x86: coreboot: Show the BIOS date
The BIOS version may not be present, e.g. on a Chrome OS build. Add the
BIOS date as well, so we get some sort of indication of coreboot's
vintage.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
| -rw-r--r-- | board/coreboot/coreboot/coreboot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c index 175d3ce691..11294d6e87 100644 --- a/board/coreboot/coreboot/coreboot.c +++ b/board/coreboot/coreboot/coreboot.c @@ -37,6 +37,7 @@ int show_board_info(void) goto fallback; const char *bios_ver = smbios_string(bios, t0->bios_ver); + const char *bios_date = smbios_string(bios, t0->bios_release_date); const char *model = smbios_string(system, t1->product_name); const char *manufacturer = smbios_string(system, t1->manufacturer); @@ -46,6 +47,8 @@ int show_board_info(void) printf("Vendor: %s\n", manufacturer); printf("Model: %s\n", model); printf("BIOS Version: %s\n", bios_ver); + if (bios_date) + printf("BIOS date: %s\n", bios_date); return 0; |
