[U-Boot] [PATCH v2 07/31] binman: Convert to use ArgumentParser

sjg at google.com sjg at google.com
Thu Jul 18 01:58:58 UTC 2019


This class is the new way to handle arguments in Python. Convert binman
over to use it. At the same time, introduce commands so that we can
separate out the different parts of binman functionality.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2:
- Don't allow global arguments after the command
- Fix up arguments in main Makefile
- Pass verbosity to tests via the setup_test_args() method
- Put --toolpath in the right place in functional tests

 .travis.yml               |  2 +-
 Makefile                  |  4 +-
 test/run                  |  4 +-
 tools/binman/README       |  8 ++--
 tools/binman/binman.py    | 47 +++++++++++-----------
 tools/binman/cmdline.py   | 82 +++++++++++++++++++++------------------
 tools/binman/control.py   | 51 ++++++++++++------------
 tools/binman/ftest.py     | 66 +++++++++++++------------------
 tools/patman/test_util.py |  5 ++-
 9 files changed, 133 insertions(+), 136 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list