Message ID | 20250821153528.141740-1-sjg@u-boot.org |
---|---|
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755790551; bh=kVxjpJVn9z6uvHV+rDpeMqnZQdWoG7fIzosbqD3mXA4=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=fp6zRlceS5iLhg/Dc7bHq9TTNJTyduGNkYASvHEtADd6znsxPPH/9V2i2dsQTS3W7 581U7mn59xhrYFd3oY8rBJmu5KOwpKZUOOV1JTHjmZzzzTOPt7raWk5Rehp3mLxHoQ VhFa8N036J1Oq7FqozxtDVMhTUL8WE9XsODyXTcfr6IHQ1N93g6uxJGulfRQ7KfYUT TlzXUXbgfs1GNvvrBS/xF6DqdX0yxZH3NvhjlKkCRh8cKSp2JJErulJvGRarAby5mM vU7Ov7y2Fafs+nxP1aDZfLFhn/+eV+u3XY2wYk1/ZJj884OWjr/BUwiJQjm58PEZ4g wcXUHNvWFDA9w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 56DEF676D9 for <u-boot-concept@u-boot.org>; Thu, 21 Aug 2025 09:35:51 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id nxr37J698eHR for <u-boot-concept@u-boot.org>; Thu, 21 Aug 2025 09:35:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755790551; bh=kVxjpJVn9z6uvHV+rDpeMqnZQdWoG7fIzosbqD3mXA4=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=fp6zRlceS5iLhg/Dc7bHq9TTNJTyduGNkYASvHEtADd6znsxPPH/9V2i2dsQTS3W7 581U7mn59xhrYFd3oY8rBJmu5KOwpKZUOOV1JTHjmZzzzTOPt7raWk5Rehp3mLxHoQ VhFa8N036J1Oq7FqozxtDVMhTUL8WE9XsODyXTcfr6IHQ1N93g6uxJGulfRQ7KfYUT TlzXUXbgfs1GNvvrBS/xF6DqdX0yxZH3NvhjlKkCRh8cKSp2JJErulJvGRarAby5mM vU7Ov7y2Fafs+nxP1aDZfLFhn/+eV+u3XY2wYk1/ZJj884OWjr/BUwiJQjm58PEZ4g wcXUHNvWFDA9w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 10B4C5FC74 for <u-boot-concept@u-boot.org>; Thu, 21 Aug 2025 09:35:51 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755790543; bh=ibPAoGtAelQHOxMZ7Zef9kup9Q+K7hpujYsBqKhAbt0=; h=From:To:Cc:Subject:Date:From; b=ArbPiOBwFLQ3aTwjLK+G8KQ7MsNO9TaijuFl/R23pbr5PLvGX+UMk7GudYC0k8tnG sZPwb47T2xwFkZTjKQsB9Y0XzT5Hcv4zHri2+qKGQnH+FzaSlZ2+gZfouw9xOicsx3 h9PupoI4J9/AcEhT7O5S/vUjkl7W1V78inpPFTp0yHqrJXXQG5rFX0fbieIMure8LR bdgPDiPbZDI4V/DbxaFMMURSegqbOFPAoBmoCbo8MTcsYWgBaquFXYTAOMtTzzh1ep MXnlkwMFsCcZ8SYM4kEy53+EgyHkXYHwgnl0Tzsjt3gTicBfimmvF2pLumf4nroDNx G2qt7Xr9AzhVA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 17ECD5FC00; Thu, 21 Aug 2025 09:35:43 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id mpiv1IqFA1mc; Thu, 21 Aug 2025 09:35:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755790538; bh=ka2hOROnIOOhMyyFoCOePv3Q7O1wGGZGZdpiKywAXLY=; h=From:To:Cc:Subject:Date:From; b=dtD8ewamwF2Mry/cSRlqOq5wOcT+g42wzbNi7frKQp4QqX3gq0TMj1T+1gs/xRrDP zpmpWRvRLe8qqblKzH/8JjSIFAEbG9pNAkkauF/GS0KmUjU+lXz0T21T+ZDuOmMDXu 8OojU2/NFjvbirLu9pZ06/y0sRqC5KxcASCzla8dS59fVp3jh1KqBgGkUUgPYbndHq ATsxxAmE77EEHfNtYcFq/EFXkh69UDcHdVhiFdt6vjE+qHTlyDSWrcBXUxDUTCzGZw 9/gwGxy5EcEHZK+L9e8lcgVye/zV1woAjGKEq6lctSSI2ZTJflhDt//PNcPxBAIR0y 0546j3UPEXGog== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7EEF05FC74; Thu, 21 Aug 2025 09:35:38 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Thu, 21 Aug 2025 09:35:17 -0600 Message-ID: <20250821153528.141740-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: SMBQXKRNFVSL3VXFOUHYFFR5BXIYJ66X X-Message-ID-Hash: SMBQXKRNFVSL3VXFOUHYFFR5BXIYJ66X X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 0/7] efi: Improvements to env print -e List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/SMBQXKRNFVSL3VXFOUHYFFR5BXIYJ66X/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: Improvements to env print -e
|
|
Message
Simon Glass
Aug. 21, 2025, 3:35 p.m. UTC
From: Simon Glass <sjg@chromium.org>
Printing EFI variables can be quite verbose, with many hundreds of lines
of text. Part of this is because GUIDs and hex dumps are included. It
can also be hard to find a few variables visually in an unsorted list.
This series makes the feature more user-friendly:
- Puts verbose output behind a -v flag, so that 'env print -e' behaves
more like 'env print'
- Adds a -s option to sort the list
Simon Glass (7):
efi: Move guid used for variables to common files
efi: Enable access to efi variables from the app
efi: Change env print -e to show only names by default
efi: Rename var_name64 to name in efi_dump_var_all()
efi: Refactor error handling in efi_dump_var_all()
efi: nvedit: Place variables in an alist before printing them
cmd: Add -s flag to printenv -e for sorted output
cmd/Kconfig | 1 +
cmd/nvedit.c | 6 +-
cmd/nvedit_efi.c | 164 ++++++++++++------
doc/usage/cmd/env.rst | 9 +-
doc/usage/cmd/printenv.rst | 84 ++++++++-
include/efi.h | 2 +
include/efi_loader.h | 1 -
lib/efi/device_path.c | 3 +
lib/efi_loader/efi_var_common.c | 3 -
.../py/tests/test_efi_secboot/test_authvar.py | 46 ++---
10 files changed, 231 insertions(+), 88 deletions(-)