From patchwork Mon May 16 11:00:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 572964 Delivered-To: patch@linaro.org Received: by 2002:a5d:5051:0:0:0:0:0 with SMTP id h17csp499144wrt; Mon, 16 May 2022 04:00:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm/phIbbsas2GjCUMWbutXZ+H4KGWO16aT31YAPd8vs4Nwz/tLHiuCv8qtippUanAm8kL+ X-Received: by 2002:a2e:8908:0:b0:253:9c85:8cc8 with SMTP id d8-20020a2e8908000000b002539c858cc8mr9006446lji.141.1652698837043; Mon, 16 May 2022 04:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652698837; cv=none; d=google.com; s=arc-20160816; b=wWBYxFk22QEJyOHw/68rgKfvKFx69tbCJ/nhVErrMNOcGbiwQDYmTYPoUQPwQpJeFe 1juXx/GgpGqOmaieE4JPhho0a/5/tn4YRmAU1OPS15EWoXvgbbCcOcKsqHX5ALy+w2GG gJmqpAYW3BiRraN2yMGTHrWLiFkUc1YFhRdIj3iTy2+CuTw5ju2N3U8pGD6etPp/7eTR DRwIdw+xWUKog5PjcDYotDchk4xblH7W4BS42+BE8kBqEsC23cd5YbUnnZUXV8I/iPow ilhv3H6XXieOTGtk3lxDhCixMCSKOFdYf+C+F/hygC+OYTBCXKCecGE2Mu+3DLur704R O9uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=hhZOd3CPdGkrwv3wSgkPKUhTtk3Bcv4BJ494KY1fFho=; b=YUoFjcwpHwQcGe9qxMPIVJ97xhBxHjR9gBEpvEBg0KK9PW08fuZmvLDimvI+8wQP+x 1SojinvZdlkpNYv0gqizLS3KWhL7424BYa9Rkq6+Cwff27PIF4eTvyJYq6F09knUa2au qz550KVgbZNVIoHVTm6h1JY/e2VHWaGHjw9SG1xEgTTTNvKaX1AdWs/sj6uh3QkGVnhR YnlPY3dwDAnOoezxrXzlTMbY2mpvXYPld4lsUWnpzeF5Ym1lcj/Zb6mKaTqnAKUs0qHz jwLbgAMfZwo9MicFALf3xw89gel8uuBim57BIsO2MzWtpLxNpm+GpZ6SjR57uXBH2aMi f8Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hH+/pNPc"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id bu10-20020a056512168a00b00471cf86ea73si12600188lfb.314.2022.05.16.04.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 04:00:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hH+/pNPc"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0355983F6C; Mon, 16 May 2022 13:00:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="hH+/pNPc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EEA4484010; Mon, 16 May 2022 13:00:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CD8E3801C3 for ; Mon, 16 May 2022 13:00:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x42c.google.com with SMTP id a11so13713361pff.1 for ; Mon, 16 May 2022 04:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hhZOd3CPdGkrwv3wSgkPKUhTtk3Bcv4BJ494KY1fFho=; b=hH+/pNPcosIVSOrQqmA0rhhJUS7rTsRjHgWiw7QmY+6fJDYMvSJPZpAD/UmLiyyXMG jizY+falfZd9ICRXgbq+W4yI/hmw/tGhm/Zfp3vVLKX3n2+O9iq76Ezzt9cRKyQmY1MG fFvSvtPpl6KKsF9Po3HS2iNbIFjb9tRpz7suXaiQ2ig9hxDv3PcqVYvuYZOB2ETpSfRx 6Wcm4jHC/JRr1PgZxQooFngy6V1OR8/Hs9OgLbuqU8M6MmZLnHpDhqVDNMAMudkyqJSE P+dESRWbti/0NS83rX7gvfLCFr7lqPwn2NpJ8L61uzFxWYMeDQdC8E9pHvGhxFWzwQmP 9MAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hhZOd3CPdGkrwv3wSgkPKUhTtk3Bcv4BJ494KY1fFho=; b=mz8gU8H6ptUZFfTZCEBX/lPV5wCdSz+Ka/f8p/7NKlLqOE2vrRxXw+THfh7JHnpn1K 8rHWi/+ISk62iavGaLOUC3PchPnAjVaqUrR2ePUnIHyi2WKnMOp9QBsR5A07Kv1GGcRd W5VIboBniTpzoil31BoqyOPUFtWeglH2xz70i9wVCxh4tywhsp0Jd/KmbmzJ1k9weV2+ mj7FoDzRZxCyFpFD5/XY35fRmuGxPw8dTrmobnC1lOZ+gDik4bVErAN4ZHdmBs6hWuqb 63sXQ9qA/qGkibH3mGXr9+vNq5tlP1zzdPNn6OA28zs/k6Snw8/J5gwl5fa79K04Ai+H S/dA== X-Gm-Message-State: AOAM530nXk5C1P8er5uldLdumD1uu8EO3KzBGf0fJ5K2is+Cr0I5TrN1 tUDd57VnOgdOdYHqQ2iu6hd9XpxM6bPWew== X-Received: by 2002:a05:6a00:c8c:b0:50e:eea:1a0 with SMTP id a12-20020a056a000c8c00b0050e0eea01a0mr16906927pfv.66.1652698823783; Mon, 16 May 2022 04:00:23 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id q2-20020a170902edc200b0016173113c50sm2446480plk.92.2022.05.16.04.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 04:00:23 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Francois Ozog , Mark Kettenis , Masahisa Kojima Subject: [PATCH v6 0/6] enable menu-driven boot device selection Date: Mon, 16 May 2022 20:00:36 +0900 Message-Id: <20220516110043.31480-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Most of the patches are merged into u-boot/master, this series contains the remaining patches to support menu-driven UEFI boot variable maintenance and removable media support. [Major Changes] - rebased to v2022.07-rc2 - there is detailed changelog in each commit Masahisa Kojima (6): efi_loader: menu-driven addition of UEFI boot option efi_loader: menu-driven deletion of UEFI boot variable efi_loader: menu-driven update of UEFI bootorder variable bootmenu: add removable media entries doc:bootmenu: add description for UEFI boot support lib/charset: fix compile warnings cmd/bootmenu.c | 167 ++- doc/usage/cmd/bootmenu.rst | 55 + include/charset.h | 2 +- include/efi_loader.h | 60 + lib/efi_loader/Makefile | 3 + lib/efi_loader/efi_bootmenu_maintenance.c | 1282 +++++++++++++++++++++ lib/efi_loader/efi_bootmgr.c | 4 + lib/efi_loader/efi_boottime.c | 52 +- lib/efi_loader/efi_console.c | 81 ++ lib/efi_loader/efi_disk.c | 11 + lib/efi_loader/efi_file.c | 75 +- 11 files changed, 1737 insertions(+), 55 deletions(-) create mode 100644 lib/efi_loader/efi_bootmenu_maintenance.c