summaryrefslogtreecommitdiff
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-07-12 09:04:35 -0600
committerBin Meng <[email protected]>2023-07-16 23:13:17 +0800
commitd42243fe21c8847cd5c6db4e11b2aee660448451 (patch)
tree194d2faca5744bb699ebb5819cedc4d28ab78fb4 /include/env_callback.h
parentf4a91655c36a1a5fad2ea879ff3ab9217cd21337 (diff)
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 <[email protected]> Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index a9a14f2a84a..23bc650c162 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