
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@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!