Skip to content

cmd: Simplify support for sub-commands

Boris Brezillon u-boot 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 0 repliesNew
  2. v3 posting 2/20 of 6 patches 0 repliesSuperseded
  3. v3 posting 1/26 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/20 of 6 patches0 repliesSuperseded
v2 posting 1/26 patches0 repliesSuperseded
v1 RFC0 of 4 patches0 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6common: command: Fix command auto-completioncommon/command.c+10 -22 replies
1/6common: command: Fix command auto-completiontest/py/tests/test_autocomp.py test/py/u_boot_console_base.py+65 -01 reply
2/6common: command: Expose a generic helper to auto-complete sub commandscommon/command.c include/command.h+19 -41 reply
3/6common: command: Rework the 'cmd is repeatable' logiccmd/dtimg.c cmd/help.c cmd/mmc.c +2 more+84 -122 replies
4/6command: commands: Add macros to declare commands with subcmdsinclude/command.h+78 -01 reply
5/6cmd: mtd: Use the subcmd infrastructure to declare mtd sub-commandscmd/mtd.c+281 -1951 reply
6/6cmd: adc: Use the sub-command infrastructurecmd/adc.c+5 -281 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchTom Rini
1/6R-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/6] cmd: Simplify support for sub-commands

Hello,

Here is the 4th version of the sub-cmd patchset fixing the maxargs def of the mtd bad sub-cmd (I noticed the bug just after sending v3 :-/).

Regards,

Boris

Boris Brezillon (6):
common: command: Fix command auto-completion
common: command: Expose a generic helper to auto-complete sub commands
common: command: Rework the 'cmd is repeatable' logic
command: commands: Add macros to declare commands with subcmds
cmd: mtd: Use the subcmd infrastructure to declare mtd sub-commands
cmd: adc: Use the sub-command infrastructure

 cmd/adc.c         |  33 +---
 cmd/dtimg.c       |   2 +-
 cmd/help.c        |   2 +-
 cmd/mmc.c         |   4 +-
 cmd/mtd.c         | 476 +++++++++++++++++++++++++++-------------------
 common/command.c  |  68 ++++++-
 include/command.h | 133 ++++++++++++-
 7 files changed, 477 insertions(+), 241 deletions(-)
Signature · 1 line
2.17.1