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: 1015024 X-Patchwork-Delegate: agraf@suse.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="kCYqEcuj"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43JmD80YMzz9s2P for ; Tue, 18 Dec 2018 16:04:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B6766C21FA5; Tue, 18 Dec 2018 05:04:06 +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-Google-Smtp-Source: AFSGD/XU5YvNPJnfSq7fPa4gsQ6/EP85O7Jc3Kj2L5dgTyPVHkqEOKLHS7w5fyyPQMHlyj5k7n4Cgw== 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(