Add a new run_patman() function to hold the main logic. Signed-off-by: Simon Glass <sjg at chromium.org> --- tools/patman/__main__.py | 127 +++++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 60 deletions(-) Applied to u-boot-dm, thanks!