Put the summary and database-writing code into separate functions to reduce the size of main(). Signed-off-by: Simon Glass <sjg at chromium.org> --- tools/qconfig.py | 66 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 47 insertions(+), 19 deletions(-) Applied to u-boot-dm, thanks!