From patchwork Tue Jan 15 02:55:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 155609 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4387888jaa; Mon, 14 Jan 2019 19:01:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lFJvAF++aWmDjo5PPwgt28jLufNRSDqw9jNSqX1+0M9qqZDcEGRXPcnNTqEqqraxU6Gl7 X-Received: by 2002:a50:a6cf:: with SMTP id f15mr1567666edc.97.1547521284739; Mon, 14 Jan 2019 19:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547521284; cv=none; d=google.com; s=arc-20160816; b=UgMUndni7NGb9vu6Md2Z5QROUYw4VD2sz4wKibMBlnMh/dE/WE53JgxU1zsZzeGtGP oPD9O7tcSNRljR2oKTopCPpXhEQ0QvRAZySGDsqO0rbaO4u+dczP2s4vpfQiTtzXctUU hF+hsL5ftvhfGVdD7iceWmIjggGehsuueoMX6jhjpYZ43y1ylEwUU3JarnarwWFNzC9+ pmiI1XuXXHRyKu5GpJij2rbJGwRzCAIW8xaK52Z2M3SHLJ6GOXGj/an20TFQT+7mIpdM tG9LmqpkCqpWQqkRCWoMIw+5M8IVK4/3WEqwbxCa/+liBAzqwnZK8tq8GT1GibyzwIpI kpmQ== 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=J1lOUwk85fj25sGAN9etvHyH4J+OmHFGbNxHzBgvJ/k=; b=WYQFh81clZU0hF4d3ZDTwdry0PIyxL50rOSXC+DUhUslR26mIL9ne6qzAopz6Antmm MW8+D8i3VVrjCYTqKjLZFKWaDAzLD7DCtKQKRK085NJNqG3PmOfuHKedxXNQJUBlO8GD 88pjKoh+0c7Fm3HOGtid0W5wKVw3BXXbH4upY8jk6tEdP67kwF696+45o2xuTUV7Kzt0 zT8mosamb/SmOgsOhDasc7ho+MzxFb8ixe6I90hS4jz/32fj6dM/UjZtQJ+79UmQ0gB+ qwLnzLlqizB97qnQwfNkVveYMkMlvKI+7vPc70URXadkGOc5r0W0yJQRelbkebd5a/9z oIzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U7HdQcoI; 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 cg5-v6si3037251ejb.288.2019.01.14.19.01.24; Mon, 14 Jan 2019 19:01: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=U7HdQcoI; 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 509B1C21F90; Tue, 15 Jan 2019 02:58:01 +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_H3, RCVD_IN_MSPIKE_WL, 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 9A6AFC21DFA; Tue, 15 Jan 2019 02:58:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BB7C9C21FC3; Tue, 15 Jan 2019 02:55:54 +0000 (UTC) Received: from mail-yw1-f65.google.com (mail-yw1-f65.google.com [209.85.161.65]) by lists.denx.de (Postfix) with ESMTPS id 25974C220D3 for ; Tue, 15 Jan 2019 02:55:50 +0000 (UTC) Received: by mail-yw1-f65.google.com with SMTP id b63so496243ywc.11 for ; Mon, 14 Jan 2019 18:55:50 -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=yCZU7hEux2Ty8plm5m2lfU6HXAfSY3qhUWyxcipl+0o=; b=U7HdQcoIZgxrZxNND4INKCtTTVnADEf2zGPXmNLAHJKKtOwE7SJHbzz9+EO+228TsF PwtdQHvJAhCvSg7SD/OXZYrdrDGTv+VwiI53JvDQ5+mF3kEqxHPxEWLWwKGenI9oQayU c6Y7EAj8FSraTlhD88ggRqhjdxZuAURzZDX2Q= 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=yCZU7hEux2Ty8plm5m2lfU6HXAfSY3qhUWyxcipl+0o=; b=ciZrY4PlNuqoIVON+lsdYAUIY5L8t0gJTNas1dXMmCLFcbyFqxpl2IqN2VdLeB5FT8 SJr/IGxs8zeOv3cZNXNtXJfbZPBCq67dpIe4R/wbrs31GHwyZCJL2ElKMmhQSEE1h79j VrUBHFX7d6PAe93Xm0kJJyg4pxmCZEGkLFoUn8mJC95VwEC3Owcb5ijctO+rvz52eHE5 KjBYjwWQhAE2zIcI4E9v1erTptBGZ02oonLn/XAZA5QALGDIaO7vNUGw9me5NrJgTKXm pks1i/mjYoJowgTxmmnfzVLP2vJUMD5/18fbC1Z/6YoZr0UFyBJWeyI6d7lS/C05wlgM PZVg== X-Gm-Message-State: AJcUukdbhpEmOPP1y8lyNCIqE/8vD0swu/knC4gsEp07y+l+wIKiaOGT 1tR/ZP6Judik6fdZU79vneixdQ== X-Received: by 2002:a81:68d7:: with SMTP id d206mr1317072ywc.378.1547520949161; Mon, 14 Jan 2019 18:55:49 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id q24sm780793ywa.95.2019.01.14.18.55.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 18:55:48 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Tue, 15 Jan 2019 11:55:19 +0900 Message-Id: <20190115025522.12060-7-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190115025522.12060-1-takahiro.akashi@linaro.org> References: <20190115025522.12060-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v4 6/9] cmd: efitool: 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/efitool.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cmd/efitool.c b/cmd/efitool.c index 4bd6367b4bd9..e77273fc6e1e 100644 --- a/cmd/efitool.c +++ b/cmd/efitool.c @@ -533,6 +533,13 @@ static int do_efi_show_handles(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; @@ -946,6 +953,8 @@ static int do_efitool(cmd_tbl_t *cmdtp, int flag, return do_efi_show_drivers(argc, argv); else if (!strcmp(command, "dh")) return do_efi_show_handles(argc, argv); + else if (!strcmp(command, "images")) + return do_efi_show_images(argc, argv); else return CMD_RET_USAGE; } @@ -976,7 +985,9 @@ static char efitool_help_text[] = "efitool drivers\n" " - show uefi drivers\n" "efitool dh\n" - " - show uefi handles\n"; + " - show uefi handles\n" + "efitool images\n" + " - show loaded images\n"; #endif U_BOOT_CMD(