From patchwork Mon Nov 5 09:06:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 150157 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2356907ljp; Mon, 5 Nov 2018 01:09:44 -0800 (PST) X-Google-Smtp-Source: AJdET5cPNdULJJRRZa1WdTiUzX25bGf/rNIIfr5dgFHyXl4ORPaJk4md3lRC96tCo9lo1cbI/nuP X-Received: by 2002:a50:b765:: with SMTP id g92-v6mr17499716ede.94.1541408984287; Mon, 05 Nov 2018 01:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541408984; cv=none; d=google.com; s=arc-20160816; b=0LV3lnnSc7qGqulL5sYOwoByui+PjtED+lC9gG05RG9fedULIqYGGAl97G/S3HjPzG IzJXXl5S2QLnYP+Fuvi0kTYTlFnic51FVJ/m97VTXDSKJlWPyw2j1m4Ef0YVLZzI7tci 03h5sp//ceaVMkj0rtpC1A3rsYNjEfM9altVBBJai9BKFWejD4M1e4EXe1OzysziqvPd nb9tPHhi5ugt0Nj42/bhi/DAIuTRcru6VGOqBI8E3VyQvpCup1njV9cyO0Jp8IuCbOvC h+BFQW7wqiH/PUwWzE+EXTSZuQQyh6ANHuRU2apbI5aRpyPRPyxFIitdC5AyOx0TjeNj fwMg== 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=o9irf/k8lhczaQTh0YGPB5WkCcE+zutXHxGjcAP/SVc=; b=Vav707Cvd0j8hL4GCsPGYOk4weCsc2jwC4VdUOV1C5NsyGtg4pL/Msy6Vtqie6pJvc 5I54TeC9yMbkzebxyzbKODV00Lb/hQLp0I0WfNNIQ7v0EhLzEqXiMegXFxo9Ja7+UnU4 rW7Z92t8I0ItmZiu3cYTo0Qo8wPwr4wVKuFMtz6GHMk8qapg2Md96I8QimwiaeY7jtC4 dTGEQF+cePLbSCmWwkaSPkGqpDEWSM8pmx8P9VirM/v8c7F17Mm9SHolqaHUVDuYBsmn qcNk433EekZ2ZVWt+ZjqQy1gl0hDGaoCprwmOic0gCf9N4z2x4KfkWnPjFYoyNWwoP86 f4tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WhciyIhO; 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 u18-v6si3499576ejj.293.2018.11.05.01.09.44; Mon, 05 Nov 2018 01:09:44 -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=WhciyIhO; 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 E46E7C22345; Mon, 5 Nov 2018 09:06:09 +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_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 69003C22453; Mon, 5 Nov 2018 09:05:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D93B9C221FF; Mon, 5 Nov 2018 09:05:06 +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 F1A06C2240C for ; Mon, 5 Nov 2018 09:05:02 +0000 (UTC) Received: by mail-yw1-f68.google.com with SMTP id v199-v6so3356955ywg.1 for ; Mon, 05 Nov 2018 01:05:02 -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=c4e5QPqibUgPXEi2qmDB2xixOf1hvAt8CgTQ9/IDCAw=; b=WhciyIhOUAZH7VuXj0A/OJgfZxb1UdLLmkGnaaYNQYTFMM9g1jNoKy0PJasd9i/rwi Urb5Fc1AbW6Zc1rMclfgWjcN4GpmaJWftorAs9DRXbak/jyUQhQrlV3K2RAJpkmSD7Fl SjDXDYbQkJ5BOj4GQFIgJjqjGJy5ZBwElgrtw= 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=c4e5QPqibUgPXEi2qmDB2xixOf1hvAt8CgTQ9/IDCAw=; b=fvngWN3E7dcxMphNMq+Z0U8Ozk65bVI3vJqhC26bLTAlt1u9+x6Gyd0SAhJXjFy3Vr qnmaZjhQqSQgZLgwZCqztBE0RYW0PkIbnlllRqZMNO43mQc2bWy3rWIViPfbCVyqDZAK SZWfI77cwVS48J88L1OEl2qN6VHPNGg7DciRAQTBlAKV8BHmUrc+onglLpUKTw+sNTvw siDh3JProc2rNZ3Phxz3dLD+akMJT0nLyEhuOfh8jCAq2eXbagy1u1g7+56OnTgU8p17 v8HoT1chvcXbkkjJM+23hSA5s1NHggP7PEWYtasMp1YcKcWs2ieFeBMvElW7gDMXSZhO jqjQ== X-Gm-Message-State: AGRZ1gL98/kQObcvl/KTP61zy0WtRfFm7/wmuvSqrSufSPNIzDCxRN0l ZpsiHq1Q8OOyhI/XJMCiuKrnfQ== X-Received: by 2002:a0d:d9d6:: with SMTP id b205-v6mr19785242ywe.318.1541408701853; Mon, 05 Nov 2018 01:05:01 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id i205-v6sm6067214ywa.22.2018.11.05.01.05.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 01:05:01 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Mon, 5 Nov 2018 18:06:46 +0900 Message-Id: <20181105090653.7409-8-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181105090653.7409-1-takahiro.akashi@linaro.org> References: <20181105090653.7409-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: xypron.glpk@gmx.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 07/14] 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 2f54f7803ac5..b5050d63fa22 100644 --- a/cmd/efishell.c +++ b/cmd/efishell.c @@ -435,6 +435,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(