Skip to content
Commit a7d5f96e authored by Simon Glass's avatar Simon Glass
Browse files

dtoc: Add the method for each command to OutputFile



Rather than the if/else construct, update OutputFile with the method to
call to process each command. This is easier to maintain as the number of
commands increases.

Rename generate_tables to generate_plat since it better describes what is
being generated ('plat' is the U-Boot name for platform data).

With this, each output method needs to have the same signature. Store the
output structures in a member variable instead of using parameters, to
accomplish this.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent f31fa99a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment