dtoc: Move the output code into its own function
authorSimon Glass <sjg@chromium.org>
Sun, 23 Apr 2017 00:42:21 +0000 (18:42 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 May 2017 19:37:21 +0000 (13:37 -0600)
commit49eec8c7f1ce6773c733950e2fb300a8a8f4562b
treebe44464b1a5d65300a89cc3ebaed098f73fb1c17
parentff71f9ac33369dbe88f5a492af21c7c605a0569d
dtoc: Move the output code into its own function

The code to generate the tables is quite long. Move the node-output code
into its own function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
tools/dtoc/dtoc.py