Put this code into a function so it is easy for it be run when packaged. Signed-off-by: Simon Glass <[email protected]> ---
Changes in v2: - Add patch to split out the main code into a function tools/dtoc/main.py | 100 +++++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 48 deletions(-) Applied to u-boot-dm/next, thanks!

