From patchwork Tue Dec 18 05:02:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 154055 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3276904ljp; Mon, 17 Dec 2018 21:00:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/Unticlby9TOMGjRM79g5Uf+gvaqo/PLaygDIG6EgtyC5IRH5s6pZHTPW75iSJY0xnbtCD+ X-Received: by 2002:a17:906:51d4:: with SMTP id v20-v6mr5974920ejk.184.1545109241965; Mon, 17 Dec 2018 21:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545109241; cv=none; d=google.com; s=arc-20160816; b=lB8vdi0R8mvGtlrdlktYL560LWWMd/LZxfoTHABDmhZyZCbtH2ZjcI86zZQ4Or4D5D hVc3BOgXPGk+WiPy5K1u1c6uvMEikAF/MblRUlhCrJogcJKL6YTBJkjgK1Ke0SJwtYuz vJiU7lFovfUupaOf/FMp9Fm85hk+VwC7C6QNlt3kF5DPAjFqU2cIA2rALpGmtvan0OgW dHAktr/jr30tjk+svT+LuH2AKkddGkSUL2POe+FbCtjojAVlNWtzElqUKBF5Ib0b8cc1 49EzTL4da63gfiS7lA5ojvv23+w/Pkpi+Fwll84Gwcea5Cu+l3ATmP0aZDIulmhmn+qs PgMA== 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:message-id:date:to:from:dkim-signature; bh=bFU3QONKDssARx/wB5jRoExk3CC5NpleKJkU/hxXmMo=; b=xAcU+ooeSBPxWwXPaCGIO16Ks4rOYPiwb9sWIK/RgbOnMcGVTtUWyXyFj2+pyTVssc ovFazXJgztwjXC9QzzEkUAWIlSzhSsiKuirhY3rsfDY/SY6DjYYYSTar4TiTX/uqGYry Yqjgw9lZVL+J4IXi8Y5xdQ07eZDe0oad835fj1UMlGuAGzdVTq+RG4yrwrZIAUAiXLO7 NSJYLdpcayGGo7hfjtqYjn8HpZFrYiSwye2oyV3xkbbPmtQ8S9TKEXg6lTO7N8wvKGzR GLMY+i5mq4hrAeSv90jjOtAZsH8dcM++HF7n7yYRn/V6/UdHAEDfIjEsQAI1oSgW4HlS 0NLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kr2KiBuL; 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 h4si6021341eda.166.2018.12.17.21.00.41; Mon, 17 Dec 2018 21:00:41 -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=kr2KiBuL; 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 86B3CC21FBA; Tue, 18 Dec 2018 04:59:58 +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 41414C220AF; Tue, 18 Dec 2018 04:59:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0E469C220D4; Tue, 18 Dec 2018 04:59:35 +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 B598EC22090 for ; Tue, 18 Dec 2018 04:59:30 +0000 (UTC) Received: by mail-yw1-f68.google.com with SMTP id n21so5132196ywd.10 for ; Mon, 17 Dec 2018 20:59:30 -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:mime-version :content-transfer-encoding; bh=27DIO6H4kTH0w52xSf9XL1aEmIxbhOSNTQPmVSgVMFA=; b=kr2KiBuL5zf3VmKM6OMo5i8fsxEsk90U7gnIXbynyUG/ccGI8+65+6eTkNKAvn/CVS DqfUYVyNRu1f6DCu4baP/h2nbVWK/XLMno8q+RrkxUmF9mauTr8OeMP0oibBVE6WvBYk uPFb4uJpMJoVGI+K//uDeT3JvxWf1vioizXgo= 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:mime-version :content-transfer-encoding; bh=27DIO6H4kTH0w52xSf9XL1aEmIxbhOSNTQPmVSgVMFA=; b=QWXHY+62XMwuAw4HUhgGWETTeVkqYs5W/WdF3dKB6q4iQRZT+odMr/XuoB9reDSCB9 CGkM5RSZpupkDUp8CnReb/098vghycsss75eLWMDeDqPm+ISo49ZDFRXJzU5aChQ02Ms mUsFFDwmWlH3nwWADG8CSbieVDHn7lB7MM2+hvcNBXBrLpQnTWFMIM2rRh8QNediTP9t nL5ZofCHCK5YXbd2kvqLlgkbBy+2NOL/aajlXTDnF5b5TOmt1nuQ2BZbdj3PbiUW8cKc gv+wAzUnELwZRUtyYSVevGTTlP33Hk0kpKuQ7MUiIC3uvK78+qGgaD0a86B1Yjm/BRBZ 9LPw== X-Gm-Message-State: AA+aEWYZJkdPumh6w2N6kRKouTB9n68tdD/wucuGaxdI8KNPTkyUWiFN qI8mHLr4h/DOYBDsp1KVa9e54g== X-Received: by 2002:a81:4ed7:: with SMTP id c206mr15919947ywb.207.1545109169687; Mon, 17 Dec 2018 20:59:29 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id r63sm4683597ywe.18.2018.12.17.20.59.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 20:59:29 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de, xypron.glpk@gmx.de Date: Tue, 18 Dec 2018 14:02:52 +0900 Message-Id: <20181218050257.20142-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 0/5] efi_loader: run a specific efi application more easily 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" This patch is a result from re-organizing my previous patches; a combination of [1] and part of [2] so as solely to provide several ways of executing a specific efi application explicitly. * bootmanager via BootNext variable * bootefi with boot id * run -e [1] https://lists.denx.de/pipermail/u-boot/2018-November/349281.html [2] https://lists.denx.de/pipermail/u-boot/2018-November/346450.html AKASHI Takahiro (5): efi_loader: bootmgr: support BootNext and BootCurrent variable behavior efi_loader: bootmgr: allow for running a given load option cmd: bootefi: carve out fdt parameter handling cmd: bootefi: run an EFI application of a specific load option cmd: run: add "-e" option to run an EFI application cmd/bootefi.c | 71 +++++++++++++++++++++++++----------- cmd/bootefi.h | 3 ++ cmd/nvedit.c | 5 +++ common/cli.c | 31 ++++++++++++++++ include/command.h | 3 ++ include/efi_loader.h | 3 +- lib/efi_loader/efi_bootmgr.c | 46 ++++++++++++++++++++++- 7 files changed, 138 insertions(+), 24 deletions(-) create mode 100644 cmd/bootefi.h