commit | aba238fb69f7a0dc02a4c7c3a9a2c6d60a52993b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Dec 18 14:54:34 2021 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 24 17:36:30 2022 -0500 |
tree | 8ad42ad0fdebf5d0fc0d9ff65a4ace95f93dc32b | |
parent | b09ae4517e784430868154de84b950b0aeb8f9c8 [diff] |
moveconfig: Use a function to read files At present there is quite a bit of ad-hoc code reading from files. The most common case is to read the file as lines. Put it in a function and set the unicode encoding correctly. Avoid writing back to a file when there are obviously no changes as this speeds things up slightly. Signed-off-by: Simon Glass <sjg@chromium.org>