From patchwork Sat Nov 3 00:27:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 196791 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 659EA2C00DB for ; Sat, 3 Nov 2012 11:30:57 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 382924A88F; Sat, 3 Nov 2012 01:29:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lvWCmwFt+o7b; Sat, 3 Nov 2012 01:29:49 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE94C4A5A6; Sat, 3 Nov 2012 01:28:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 54AEE4A102 for ; Sat, 3 Nov 2012 01:28:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vOVg0sXdVy4b for ; Sat, 3 Nov 2012 01:28:19 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id 4D70D4A120 for ; Sat, 3 Nov 2012 01:28:04 +0100 (CET) Received: by mail-yh0-f74.google.com with SMTP id 10so471502yhl.3 for ; Fri, 02 Nov 2012 17:28:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=R69RfycR+YCrV0qth4ABxRmsXbtVVXHFDN29VU8p49s=; b=VnDlLD0pXuNCJdIG3vMg9xCJfBozOBhQQxrwvkZPYb1TNK1l0zA96iPHpI+deK0l63 K9EfGpP7CfXJgmAXW8Qo/ydvNvMPESZ6fAis3BfA5Bc1A39mb26V7ZlK2uJJO7MBKQ5H LysN2QzBfyFp1l/qEMuW3OxkTn1IWrc/P+Sq7OFoMsWAKKD/3GLLa1kcF7PStPHuV7Hq 9timES7ldCaCe8PXVWCaNWIGgwPzTrgRw8hFFXJTyVJpX2AKAciHK6ypGnNUlB1c4TWk g6Oul+ka7TT+9JNZOrWq8cMc4jet/QTUAr6CF9j1rjKwoHQfF6dZqgiB7EoB74z8zTVb Cuiw== Received: by 10.236.117.109 with SMTP id i73mr2727486yhh.47.1351902483078; Fri, 02 Nov 2012 17:28:03 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id l1si335939anm.0.2012.11.02.17.28.03 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 02 Nov 2012 17:28:03 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id B6036100056; Fri, 2 Nov 2012 17:28:02 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 2B8EF161954; Fri, 2 Nov 2012 17:28:02 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Fri, 2 Nov 2012 17:27:23 -0700 Message-Id: <1351902453-27956-8-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1351902453-27956-1-git-send-email-sjg@chromium.org> References: <1351902453-27956-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmP/5ytM9+rrT7qfoFWPtrR94TjZ/gELYh/bdy0DIMbmS2O2I/arLJXvdPKE3o6D09e4yH6AL4cp17jNJw0Eyr1A6Mmb8h9EzaAIUo7R8sqQde5i64Ox7lwluI0E8XA4+17jjkwLuBpoDXItpH7BTzzz0IvMIeFm6KcwKD4KdL5xpQxIR7pdFLRHzG0YzdfoKjFQvnl Cc: Tom Rini , Stefan Reinauer Subject: [U-Boot] [PATCH 07/17] Add coreboot version to u-boot's version command X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Stefan Reinauer Since U-Boot runs from coreboot on x86, the Coreboot version is an important part of the boot state. This version information is available in the coreboot tables, so print it when the 'version' command is used. Signed-off-by: Simon Glass --- common/cmd_version.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/common/cmd_version.c b/common/cmd_version.c index e4b2ac1..860c7ea 100644 --- a/common/cmd_version.c +++ b/common/cmd_version.c @@ -25,6 +25,9 @@ #include #include #include +#ifdef CONFIG_SYS_COREBOOT +#include +#endif const char __weak version_string[] = U_BOOT_VERSION_STRING; @@ -37,7 +40,9 @@ 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; }