dtoc: Move the main code into a function
authorSimon Glass <sjg@chromium.org>
Fri, 24 Feb 2023 01:18:15 +0000 (18:18 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 19:40:49 +0000 (11:40 -0800)
commitb3f5474077d60a1886f4ebb329387c108eca22d4
tree8a58b0168cc2d5e2909d2fbad344ee3dc13bcf00
parentab9272b8042db7e3f26b495635c20cbbe439ce42
dtoc: Move the main code into a function

Put this code into a function so it is easy for it be run when packaged.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/main.py