Move this function after the extraction logic so we can keep the writing logic in one place. Signed-off-by: Simon Glass <sjg at chromium.org> --- tools/binman/control.py | 81 ++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 41 deletions(-) Applied to u-boot-dm, thanks!