From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED008C48BC2 for ; Sun, 27 Jun 2021 23:52:46 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3FF71619C4 for ; Sun, 27 Jun 2021 23:52:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FF71619C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2DE482D96; Mon, 28 Jun 2021 01:51:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="CxZYjrX5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1CFFF82D80; Mon, 28 Jun 2021 01:51:34 +0200 (CEST) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B5CEE82CE9 for ; Mon, 28 Jun 2021 01:51:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x235.google.com with SMTP id b2so17398309oiy.6 for ; Sun, 27 Jun 2021 16:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lGnraZtqUuBuEIuTVEbA9tQSHuV/a2ugQZTgxZ4qb70=; b=CxZYjrX5vg7PAXHwrFna4wYOgrVksNo51TxbA8dfqziqJtsIf+B0Vdc7Vv8C1DyDBk HXqQJS3PakuCcHFym/LH+uy49t4nEId320Ai8HKesEIamFBsIJEuyyeKjToZvNlfOMql yr516dDNhN/KLUpLN0XIwx6LXGmC9Wiu1FbO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lGnraZtqUuBuEIuTVEbA9tQSHuV/a2ugQZTgxZ4qb70=; b=orBhC6jEC/LvEEbf5WDBR0dRjTGclsXkveFtH1QqHztLMCaaj5F0lCb9HPwf5I4XM1 Rfhyyx+Z+1icZUYPkcTkMQYUsQq43BIjZDjQrmYhKQ9KVn6Go4bCsPVPapmk2YCmLUbG SdrhXndZD0wUqMz6V81jgOWjOb+2W4U2VRURqKsoW/kgJUpyqQ5sSGQhqJP2kp2hRFQM JsQ5Qky59BDtSkM3RT/KxiWIfXnHgDlNK/3wch5ySxT5Zl3MrUYOnBIWCkr4MQSCZJ1a AizgYQCW60ABikdSOkA3Dx9gnP0ii+6f1dcaVTYIi3ucoCuRsewJRfVVjZpwfSIn8abI 6vNQ== X-Gm-Message-State: AOAM531Rxi/bCM+sOQD/QNcKRPCugycTvhJdgcAiq/zEuv/YNQVmF1Fa DLaYdKuqYw17gGji6tKanFZq8+fSxSdObC02 X-Google-Smtp-Source: ABdhPJyKuw06bJeVRBLNnhUwAevjM+VgJVw599dxQ7evf8N6ugj8mBj5nnUe0EVWOkLiDv4nFiNk/A== X-Received: by 2002:a05:6808:cb:: with SMTP id t11mr2242856oic.73.1624837887712; Sun, 27 Jun 2021 16:51:27 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id bb34sm1297928oob.39.2021.06.27.16.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jun 2021 16:51:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng , Stefan Reinauer , Vadim Bendebury Subject: [PATCH v3 09/16] x86: coreboot: Show the BIOS date Date: Sun, 27 Jun 2021 17:51:04 -0600 Message-Id: <20210627235111.485507-8-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210627235111.485507-1-sjg@chromium.org> References: <20210627235111.485507-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Bin Meng --- (no changes since v2) Changes in v2: - Reorder declaration and use bios_date for the variable name board/coreboot/coreboot/coreboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/coreboot/coreboot/coreboot.c b/board/coreboot/coreboot/coreboot.c index 175d3ce691a..11294d6e870 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; -- 2.32.0.93.g670b81a890-goog