All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/3] cmd: env: select: Add output for available environment targets
@ 2025-06-30 15:12 Christoph Niedermaier
  2025-06-30 15:12 ` [PATCH V4 1/3] cmd: nvedit: Convert the parsing of arguments to getopt() Christoph Niedermaier
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Christoph Niedermaier @ 2025-06-30 15:12 UTC (permalink / raw)
  To: u-boot
  Cc: Christoph Niedermaier, Andy Shevchenko, Christian Marangi,
	Heinrich Schuchardt, Ilias Apalodimas, Jerome Forissier,
	Joe Hershberger, Marek Vasut, Michal Simek, Patrick Delaunay,
	Rasmus Villemoes, Simon Glass, Tom Rini, Venkatesh Yadav Abbarapu

Add the "-l" parameter to the "env select" command to print the available
environment targets, convert all argument parsing in the file nvedit.c to
getopt() and check that with unit tests.

The first patch converts the parsing of arguments to getopt() for all env
commands. The second one adds unit tests for checking the env command.
These were used to check the env commands before and after the conversion.
The third patch adds the actual new parameter "-l" for the "env select"
command.

Christoph Niedermaier (3):
  cmd: nvedit: Convert the parsing of arguments to getopt()
  test: cmd: nvedit: Add basic unit tests
  cmd: env: select: Add output for available environment targets

 cmd/nvedit.c      | 353 +++++++++---------
 env/Kconfig       |   1 +
 env/env.c         |  16 +
 include/env.h     |   7 +
 test/cmd/Makefile |   1 +
 test/cmd/nvedit.c | 891 ++++++++++++++++++++++++++++++++++++++++++++++
 test/cmd_ut.c     |   2 +
 7 files changed, 1098 insertions(+), 173 deletions(-)
 create mode 100644 test/cmd/nvedit.c

Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
---
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Christian Marangi <ansuelsmth@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Jerome Forissier <jerome.forissier@linaro.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Michal Simek <michal.simek@amd.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Rasmus Villemoes <ravi@prevas.dk>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-18 17:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 15:12 [PATCH V4 0/3] cmd: env: select: Add output for available environment targets Christoph Niedermaier
2025-06-30 15:12 ` [PATCH V4 1/3] cmd: nvedit: Convert the parsing of arguments to getopt() Christoph Niedermaier
2025-06-30 15:12 ` [PATCH V4 2/3] test: cmd: nvedit: Add basic unit tests Christoph Niedermaier
2025-06-30 15:12 ` [PATCH V4 3/3] cmd: env: select: Add output for available environment targets Christoph Niedermaier
2025-07-10  1:58 ` [PATCH V4 0/3] " Tom Rini
2025-07-11 17:37   ` Christoph Niedermaier
2025-07-11 17:41     ` Tom Rini
2025-07-11 20:56       ` Christoph Niedermaier
2025-07-18 17:16         ` Christoph Niedermaier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.