From patchwork Wed Sep 14 16:20:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1677990 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=AK/YJIhJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MSQY82TxBz1ynm for ; Thu, 15 Sep 2022 02:20:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F73084B42; Wed, 14 Sep 2022 18:20:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="AK/YJIhJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D852A84B5E; Wed, 14 Sep 2022 18:20:21 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E4D2184B30 for ; Wed, 14 Sep 2022 18:20:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663172417; bh=N1vHpRK/QW0tcCCWpAo7gVzqJSauAym/mxt3cmmK7uU=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=AK/YJIhJKMz+rtCjeTKTdAFSMFOSjjVo4DGKVTCfHodu4vXUurrbemyawen7eyM1W 9MEUW+B+OA/vEy1omv5AEWZLuUIV92rsdSP9PPZOssagRpZZD/Wl13eiLsgDpC7bkd uM8Cp60T2KkkS5L5GN0cu5bJRDZ3pzemIY5KRCaA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([84.118.157.2]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGQjH-1oX3pU115B-00GuNi; Wed, 14 Sep 2022 18:20:17 +0200 Message-ID: Date: Wed, 14 Sep 2022 18:20:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Content-Language: en-US To: Tom Rini Cc: U-Boot Mailing List , Ilias Apalodimas , Masahisa Kojima From: Heinrich Schuchardt Subject: Pull request for efi next X-Provags-ID: V03:K1:Wzwj+1H6Tcm45kS0oiQUZfPj2vqZWtA39o9qJiRAHFPhplPUq7v fJKwVuUVFhze2nh8KaHO3jicTpNHjO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P8fh+byqqyEAFJVfdgjtk0kjEyy358/YlmDkbHTK2tcs+TtMUZUKg0zrlUZ TsBLLvaXaz18xPrjvWem8g66N6tj8o/KI2tKbj/UXK5nOGzRvT5+WHyg0esWnprWedSFqUykm iIFD05rSaNItRHTdoKkHP8e9b4OdlidUTiMZqpVacfhlVGs5olv85wcYYlZtzLk0FkTCGtddd T3j1VYZW7rH3ThOd27piWLX20+CbtlB7+RKNmnenlDObPMJLiQlZAtiOZE53Mx8OM3wSoiRb6 67iLdBo6dGkgZVHuDZSw+HK4Dn 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.6 at phobos.denx.de X-Virus-Status: Clean Dear Tom, please, pull into the next branch. The following changes since commit c2238fcf0c4567bbd581882e5952047e71406f58: Merge branch '2022-09-13-add-aspeed-spi-controller' into next (2022-09-13 15:55:33 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-2022-09-14 for you to fetch changes up to da4fb707ca095c223b67637e2525df4866e51c62: test: unit test for eficonfig (2022-09-14 08:43:32 +0200) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/13439 ---------------------------------------------------------------- Pull request for efi next UEFI: Implement a command eficonfig to maintain Load Options and boot order via menus. ---------------------------------------------------------------- Masahisa Kojima (10): eficonfig: menu-driven addition of UEFI boot option eficonfig: add "Edit Boot Option" menu entry menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling eficonfig: add "Delete Boot Option" menu entry bootmenu: add removable media entries eficonfig: scan media device in eficonfig startup eficonfig: add "Change Boot Order" menu entry doc:bootmenu: add description for UEFI boot support doc:eficonfig: add documentation for eficonfig command test: unit test for eficonfig cmd/Kconfig | 7 + cmd/Makefile | 1 + cmd/bootmenu.c | 22 +- cmd/eficonfig.c | 2502 ++++++++++++++++++++++++ common/menu.c | 9 + configs/sandbox_defconfig | 1 + doc/usage/cmd/bootmenu.rst | 74 + doc/usage/cmd/eficonfig.rst | 71 + doc/usage/index.rst | 1 + include/efi_config.h | 98 + include/efi_loader.h | 53 + include/menu.h | 3 + lib/efi_loader/efi_bootmgr.c | 7 + lib/efi_loader/efi_boottime.c | 52 +- lib/efi_loader/efi_console.c | 70 + lib/efi_loader/efi_disk.c | 50 + lib/efi_loader/efi_file.c | 75 +- test/py/tests/test_eficonfig/conftest.py | 40 + test/py/tests/test_eficonfig/test_eficonfig.py | 354 ++++ 19 files changed, 3437 insertions(+), 53 deletions(-) create mode 100644 cmd/eficonfig.c create mode 100644 doc/usage/cmd/eficonfig.rst create mode 100644 include/efi_config.h create mode 100644 test/py/tests/test_eficonfig/conftest.py create mode 100644 test/py/tests/test_eficonfig/test_eficonfig.py