expo: cedit: Support writing settings to environment vars

Add a command to write cedit settings to environment variables so that
they can be stored with 'saveenv'.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-08-14 16:40:35 -06:00
committed by Tom Rini
parent 472317cb12
commit fc9c0e0771
5 changed files with 172 additions and 14 deletions

View File

@@ -80,4 +80,13 @@ int cedit_write_settings(struct expo *exp, struct abuf *buf);
*/
int cedit_read_settings(struct expo *exp, oftree tree);
/**
* cedit_write_settings_env() - Write settings to envrionment variables
*
* @exp: Expo to write settings from
* @verbose: true to print each var as it is set
* Return: 0 if OK, -ve on error
*/
int cedit_write_settings_env(struct expo *exp, bool verbose);
#endif /* __CEDIT_H */