From patchwork Mon Jan 21 07:49:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1028320 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="imm9lHTp"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43jkMf3cKmz9sBZ for ; Mon, 21 Jan 2019 18:54:06 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D92EBC21E30; Mon, 21 Jan 2019 07:51:32 +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, 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 277C3C21E30; Mon, 21 Jan 2019 07:49:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CE4C3C21E79; Mon, 21 Jan 2019 07:49:36 +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 B422EC21DED for ; Mon, 21 Jan 2019 07:49:34 +0000 (UTC) Received: by mail-yw1-f65.google.com with SMTP id f65so7694611ywc.8 for ; Sun, 20 Jan 2019 23:49:34 -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=UMg9YetWd72rHbNc+9qhibvW9bP3qv/0CnjpaMcSiv4=; b=imm9lHTpdWe9ruFF36TqMtavO87nmxZ1hnmEjE+FsTgzvu5QNg4qlUGPoFevN4EFeI WLIsF5shlHcLlZZx3kN5awA8aTNt7ksL4F83C61YSeAWws5qyMw0656KFT1cNBYqc745 eKPtwrznXUPhS+YqrV2Y+bb/+QSsNDeu7UjzU= 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=UMg9YetWd72rHbNc+9qhibvW9bP3qv/0CnjpaMcSiv4=; b=lsEshY+voMxp9Oc3LMZCE2yatuoQmu+u/apQ6eQmDH63bMvSvMOlnFj09UUybOBKK5 W/JJGm/CL5qdgf0bomo/U7NdNuPedkesijxGZQZhQ+vPRWY+ZC5IuGR+tW9voEY9+EGy AlFA7GNgZ6l66iy4Mpf9GrIUzbJ+kBdLe0WGSl0rWjrBFq2tCbkuXQXH+YDz4QotsUIS q2hS9kmJzJwSgbJsC436Tl8yaDjSAU43KRAPJLXwVkuAmROTeoXmvv5bq5TYf7o2x142 lcMmB//PLVFLccccHef1+dOfgpOCtK1TWMukE7MLpgkEkRPDhQOrkcR8yyo3YWtYNqFJ 2g9g== X-Gm-Message-State: AJcUuke8hLL/eI3hBsK3kTaaLKgy6TZ+SDZH8myRdunpxDZdmZ5ViVdc EI8/YVxbOe4LWBLu/QweqtELgw== X-Google-Smtp-Source: ALg8bN59MWF6wGB9y/sG7ZUh6q5DDOL/1IeiScoMkRxoQYEHMAI4yeAPxBK1B1HeoOO7inqiBZYpQg== X-Received: by 2002:a81:2ac1:: with SMTP id q184mr26334269ywq.99.1548056973758; Sun, 20 Jan 2019 23:49:33 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id w63sm4816400ywc.46.2019.01.20.23.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jan 2019 23:49:33 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Mon, 21 Jan 2019 16:49:21 +0900 Message-Id: <20190121074923.29959-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190121074923.29959-1-takahiro.akashi@linaro.org> References: <20190121074923.29959-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 5/7] cmd: efidebug: 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/efidebug.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 34794398c0c2..906e6b2d0295 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -584,6 +584,14 @@ static int do_efi_show_handles(cmd_tbl_t *cmdtp, int flag, return CMD_RET_SUCCESS; } +static int do_efi_show_images(cmd_tbl_t *cmdtp, int flag, + int argc, char * const argv[]) +{ + efi_print_image_infos(NULL); + + return CMD_RET_SUCCESS; +} + static int do_efi_boot_add(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -983,6 +991,8 @@ static cmd_tbl_t cmd_efidebug_sub[] = { "", ""), U_BOOT_CMD_MKENT(dh, CONFIG_SYS_MAXARGS, 1, do_efi_show_handles, "", ""), + U_BOOT_CMD_MKENT(images, CONFIG_SYS_MAXARGS, 1, do_efi_show_images, + "", ""), }; /* Interpreter command to configure UEFI environment */ @@ -1039,7 +1049,9 @@ static char efidebug_help_text[] = "efidebug drivers\n" " - show uefi drivers\n" "efidebug dh\n" - " - show uefi handles\n"; + " - show uefi handles\n" + "efidebug images\n" + " - show loaded images\n"; #endif U_BOOT_CMD(