diff options
author | Simon Glass <sjg@chromium.org> | 2023-07-12 18:04:35 +0300 |
---|---|---|
committer | Bin Meng <bmeng@tinylab.org> | 2023-07-16 18:13:17 +0300 |
commit | d42243fe21c8847cd5c6db4e11b2aee660448451 (patch) | |
tree | 194d2faca5744bb699ebb5819cedc4d28ab78fb4 /include | |
parent | f4a91655c36a1a5fad2ea879ff3ab9217cd21337 (diff) | |
download | u-boot-d42243fe21c8847cd5c6db4e11b2aee660448451.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/env_callback.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/env_callback.h b/include/env_callback.h index a9a14f2a84..23bc650c16 100644 --- a/include/env_callback.h +++ b/include/env_callback.h @@ -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 |