Put this code into a function so it is easy for it be run when packaged. Signed-off-by: Simon Glass <sjg at chromium.org> --- Changes in v2: - Add patch to split out the main code into a function tools/binman/main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) Applied to u-boot-dm/next, thanks!