From patchwork Thu Feb 10 07:05:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 541390 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp2005179imo; Wed, 9 Feb 2022 23:05:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKfrisEtqF3B6xSo0jE5MSeVVnMSgWHkkwe2d68oEcDn8YnmzOUqhri6Lqa9A5GSqJXdWZ X-Received: by 2002:a05:6402:1d4c:: with SMTP id dz12mr6827978edb.385.1644476730862; Wed, 09 Feb 2022 23:05:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644476730; cv=none; d=google.com; s=arc-20160816; b=whGYlzRIKWestJyX66d40OQJhryBdJkEiFRKBhbTBUxZkofYy+5EAeyhTDhZQdwpXT tj792qx6eZuyTcSYwSKuJesDFIGDN165ZOzDZOslE5Sx8W+KGxyYP/83bcOKkGKNdYAU y946FWwARKm3wUBU1lNWQdroRpJFjoOQCP27ykrh80dyK0qIP3UF2xd1CIpdW7Ts/kY5 Gp+WmbPb7gT9DpiGAiJlM/+EtlbHzlGMbaZ5cbqustM++Y3Ls5dy+UU1zv/vfzqoOnJN 0mqJJwa6I75uEe7xcvtgXrnQQRF+Acrf/uz1YEpkZnQV8/ir9lRMuZsmPcZrVWdWvU6l w9dA== 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=V7LL6goPvwo0ewE+00e7XNNtO8Whkp4M+udfMAwXWQQ=; b=w4UTIsXqs5VYKwDE/JgyIyyw4A95R4KaXUzkiMjEs74hyuEyz7B6W+pOlr4M3NNU6l //ZHGhX16Ba6AadRo8D/ltWCPlv60nas3uMAL+OulGdbHTwhMNNJ595tbebw7frmpHZG 4wjDdy+fy/9BIbVRdtdwjckQC+PlNyu1/RI0RBHJ1+z/Iprdy79qzcXI1b1RAdCc3MB/ OGjXub3NazstWw5KsmgFKYvBffOdYh4pqVwFPcK0mZY6cNNM3EemmbFZnmf8R4sSRcRC qXtIOpqP9KCMHQdsSWLx5IMzX8zUn38PtgVgjlls5GdYXMJ9lhmkLxy9R+Yevis31fLG SRHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMETDhs7; 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 g9si1806765edz.440.2022.02.09.23.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 23:05:30 -0800 (PST) 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=fMETDhs7; 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 26A2580F6F; Thu, 10 Feb 2022 08:05:27 +0100 (CET) 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="fMETDhs7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3C4938091B; Thu, 10 Feb 2022 08:05:25 +0100 (CET) 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-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) (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 2B5748091B for ; Thu, 10 Feb 2022 08:05:22 +0100 (CET) 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-pl1-x631.google.com with SMTP id y17so1058719plg.7 for ; Wed, 09 Feb 2022 23:05:22 -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; bh=V7LL6goPvwo0ewE+00e7XNNtO8Whkp4M+udfMAwXWQQ=; b=fMETDhs7g7kxt/oU3/un4nJxNtIJtkUFysw3DS2Z6cfw48sVgX74JzWnrnln0hfJuV kMaOn71sKQRUIr3G1yCJ+pYVCIaasfTFYO0cFoMkZ12HJM1vtbTVgYEbWFqUq0Qt/Gef PMEVrxZx4N0k2bcTZ/uNyZ7nWSncEIC+93XQs7ByNAfgJoqY/TJVh27NsLcnQD80y2jL qRjqS4eJuDONDOWhSi/VPyAVexLftjbDaw2vi+caMOuaPow5b1szQu3gV+9bE728ZxAM oJukpu739zfR3N+i2QcEy5a3KY0+dfVZ5ZbNWYemTBOwTDH+sWmsYz+SKHgP7nyJMt5t 7bdg== 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=V7LL6goPvwo0ewE+00e7XNNtO8Whkp4M+udfMAwXWQQ=; b=1IycfI+oZ4abR2EAv98ekyWnYtMO/3qxSCbXP2nTtng8I6cCzAnMnzNkmRmUg0XttL ou7iRXCvBgJWWOB32OZ9sEEQ72c5b2fAN6TVQDwtqLfa4+QdVR4TqR8BplRW/UL+3UBb 1xdIWM/1nk3M6mTqPmf46uZgWzmeNEPuIoV7nplaLY3e0Y4OyJ6diPN3O+PkuSKyTIWD FRF1ZPnNYcmqnIRhpM2Sy6GbUZ1pBu0U25Mubpefw79iG0yvCI7zNDdkUmaAdktYB91S 0N15rBqzbZn1RK7Zx634cKPBhd9Eh9o0f7AaM5MZCJn7YV1JtwPZxZZ7z21rRB97Dnnp VQiw== X-Gm-Message-State: AOAM530PWIjNK3cOPZ4AtEsRQrd8xq1Iw4CCax2UtCHzYfSFgW5BNC4+ KSV9JNwTIiquyzrJ+93zzzapyQFFus+S9Q== X-Received: by 2002:a17:903:248:: with SMTP id j8mr6153397plh.123.1644476720461; Wed, 09 Feb 2022 23:05:20 -0800 (PST) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id q1sm984428pjd.48.2022.02.09.23.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 23:05:19 -0800 (PST) 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 0/3] enable menu-driven boot device selection Date: Thu, 10 Feb 2022 16:05:33 +0900 Message-Id: <20220210070537.28667-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 This patch series adds the menu-driven boot device selection. This menu also provides the functionality to add and delete Boot#### variable, and edit the BootOrder variable. This menu appears with the command "bootefi bootmgr", the menu structure is as follows. * Menu structure [Boot Manager] -> select Boot#### to boot [Boot Manager Maintenance] - [Add Boot Option] -> add new Boot#### variable - [Delete Boot Option] -> delete existing Boot#### variable - [Change Boot Order] -> update BootOrder variable * Remaining items - Support to add Boot#### other than block device(e.g. network) - error notification - escape sequences handling Masahisa Kojima (3): efi_loader: add menu-driven boot device selection lib/charset: add u16_strcat() function efi_loader: add menu-driven UEFI Boot Variable maintenance include/charset.h | 13 + include/efi_loader.h | 1 + lib/charset.c | 12 + lib/efi_loader/Kconfig | 10 + lib/efi_loader/efi_bootmgr.c | 1277 +++++++++++++++++++++++++++++++++- 5 files changed, 1310 insertions(+), 3 deletions(-)