bootstd: Use the bootargs env var for changing the cmdline

The "bootargs" environment variable is used to set the command-line
arguments to pass to the OS. Use this same mechanism with bootstd as well.
When the variable is updated, it is written to the current bootflow. When
the current bootflow is updated, the environment variable is updated too.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass
2023-07-12 09:04:35 -06:00
committed by Bin Meng
parent f4a91655c3
commit d42243fe21
3 changed files with 68 additions and 2 deletions

View File

@@ -60,8 +60,10 @@
#define NET6_CALLBACKS
#endif
#ifdef CONFIG_BOOTSTD
#define BOOTSTD_CALLBACK "bootmeths:bootmeths,"
#ifdef CONFIG_BOOTSTD_FULL
#define BOOTSTD_CALLBACK \
"bootmeths:bootmeths," \
"bootargs:bootargs,"
#else
#define BOOTSTD_CALLBACK
#endif