From patchwork Tue Dec 18 05:05:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 154061 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3281346ljp; Mon, 17 Dec 2018 21:06:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOQW3IQFjw/UK4STo0iNHw9pWP/arPYqAujQIS71IKuFXBC4jYc0FjT3oYyY4o3Nkn7Cdv X-Received: by 2002:aa7:cdda:: with SMTP id h26mr15440034edw.248.1545109584654; Mon, 17 Dec 2018 21:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545109584; cv=none; d=google.com; s=arc-20160816; b=zLFiex7CwMMx5SSl46IprVfMacjcOSJG2gKEqFubKPtbQ64I8biGskvbsXfCozdG99 U2dydCVzyq3K0qJicGGUsUX+TsKir2aH8FuBg6UD4c+DJc5dmhPRhFyMNy8/e0Wze5zH e6nRcvgv1vHwHM8IVVwY1BDfa7rC9k+i9BDFDSj2nklK2jVWmKJTjklsYGOhjtOXwCWp Q7pQrsDzpiBE1YCrGAQwc2x9CtFxLUtVnVJ8mwf4nUyBYTAJPc2Yvr3PmferLLk47ODA xtcqxpJJEzaujMQgTGWNxdWLyWKRbO2ItZN9ka7JPp98cC9z04zFY8Ug5GfzIHnRAte/ qTBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature; bh=OiDjP87ZwBddEuweY5YNijPVCWL5aG7vQHnOVjTu6Sk=; b=IZr0Hwv3mBdDDgfv5QgGZvkltIzytuYj9+bAFngeTQl+8SNq9vc5LOEhcNuZ9Wy5jc fWUVJetc3mTauD+QtuSAhhnqIxz0J/rNH/olbw9EU4FWLdiAvskAvma8Q6HN8Naz+O8h xTzWfPyhjvPJExtfIeUq6+FLf7NN+kqxdWttJFqTniR5zG83qz73wahJmVSwoGBs0QfA Pu54AjkutW54na8Qyvj1vuRlVFb++O0u8ypICAEJTYek61EWPZD1ec5+28blA0CI+wqd dLKlFL07/zlS0EXn5dxK55L0iekiHMey0H+pnv+cVvH8RvEwCrDeQJs6RY1CW5Gcgz3R 7Uiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kCYqEcuj; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x52si40778edx.285.2018.12.17.21.06.24; Mon, 17 Dec 2018 21:06:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kCYqEcuj; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 459D4C21ECC; Tue, 18 Dec 2018 05:04:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 83239C22029; Tue, 18 Dec 2018 05:03:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EDF67C22018; Tue, 18 Dec 2018 05:01:59 +0000 (UTC) Received: from mail-yw1-f68.google.com (mail-yw1-f68.google.com [209.85.161.68]) by lists.denx.de (Postfix) with ESMTPS id DE51AC21FAC for ; Tue, 18 Dec 2018 05:01:58 +0000 (UTC) Received: by mail-yw1-f68.google.com with SMTP id h32so6186948ywk.2 for ; Mon, 17 Dec 2018 21:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XmhQGwdz/WZLZq8p6I9KkiZGKebc0yRfkjTkszPzY80=; b=kCYqEcuj74PUU14f+AgvetFUytSAhKqlYVN8xtGliSxTHrTcK/PWFpq4yEWNhxJ2s6 UXDVj9dn0VbEpJm7KEKK7D5mWqoFeolgKhVbthiZdsldsDpkGw/dG0UOZRKIZtuiOoVh Qo7q2RZyCl9feZ95QvScB4ii1MZKUufzotpqs= 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=XmhQGwdz/WZLZq8p6I9KkiZGKebc0yRfkjTkszPzY80=; b=njHaX1QdlEQiDOB2SW9y2NvJ3SjaRn02ZEywN0+AA86Z8Dh8KOthhCuLoqosOq7a30 udBxyAh5X8uWaeboLK0JAP1xnZ4r7zb+1XrCiwI61MB3Di4kkbYC3oMh/t1zAMT+03+P Discr2P6N1K8uRXraHc6mUKde7Vo+CgoJxBHfv7jMNK3Dakj1d0Ve9lgdNG7Ue0ggchi 4T91swXpC6V1uMKp5svpawURHaL2xJpQCXYup2t06yVDW9Z3+aqrMkc5stzKyNpTTaff nzaCYdbqZmINzS45JIWGrWjJmrTFVQzbo43bGevWJuczocuk/UN1LAD+caj5RkECDm2S PCpw== X-Gm-Message-State: AA+aEWbWaEpVqndSEq1VqtbU9h0b0SKzlSAb82/zBneTFMwx5JWLMK7C hH3r0C8PriUDp6YRoovJzYc0Vg== X-Received: by 2002:a81:2209:: with SMTP id i9mr16338886ywi.2.1545109317925; Mon, 17 Dec 2018 21:01:57 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id y83sm4519149ywd.65.2018.12.17.21.01.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 21:01:57 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Tue, 18 Dec 2018 14:05:06 +0900 Message-Id: <20181218050510.20308-5-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181218050510.20308-1-takahiro.akashi@linaro.org> References: <20181218050510.20308-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 4/8] cmd: efishell: add images command X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" "images" command prints loaded images-related information. Signed-off-by: AKASHI Takahiro --- cmd/efishell.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/efishell.c b/cmd/efishell.c index ed8de9e0355d..010870df63c8 100644 --- a/cmd/efishell.c +++ b/cmd/efishell.c @@ -432,6 +432,13 @@ static int do_efi_show_drivers(int argc, char * const argv[]) return CMD_RET_SUCCESS; } +static int do_efi_show_images(int argc, char * const argv[]) +{ + efi_print_image_infos(NULL); + + return CMD_RET_SUCCESS; +} + static int do_efi_boot_add(int argc, char * const argv[]) { int id; @@ -817,6 +824,8 @@ static int do_efishell(cmd_tbl_t *cmdtp, int flag, return do_efi_show_devices(argc, argv); else if (!strcmp(command, "drivers")) return do_efi_show_drivers(argc, argv); + else if (!strcmp(command, "images")) + return do_efi_show_images(argc, argv); else return CMD_RET_USAGE; } @@ -842,7 +851,9 @@ static char efishell_help_text[] = "efishell devices\n" " - show uefi devices\n" "efishell drivers\n" - " - show uefi drivers\n"; + " - show uefi drivers\n" + "efishell images\n" + " - show loaded images\n"; #endif U_BOOT_CMD(