moveconfig: Use a function to write files
authorSimon Glass <sjg@chromium.org>
Sat, 18 Dec 2021 21:54:33 +0000 (14:54 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 24 Jan 2022 22:36:30 +0000 (17:36 -0500)
commit2fd85bd3263966dee1c4a913c457d1000a52de48
treef45817b537a034200a47362aa957731c0095f753
parent478920dc586458e49cd4801654b31f5c8ea58569
moveconfig: Use a function to write files

At present there is quite a bit of ad-hoc code writing to files. The
treatment of newlines is different in some of them. Put it in a function
and set the unicode encoding correctly.

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