summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-12 18:04:34 +0300
committerBin Meng <bmeng@tinylab.org>2023-07-16 18:13:17 +0300
commitf4a91655c36a1a5fad2ea879ff3ab9217cd21337 (patch)
treea395cc77bb228bdc7de746688502a3b04e1e2ac2 /include
parent2270c3639ae355e298f245ec1c9ba9f560bc7e5c (diff)
downloadu-boot-f4a91655c36a1a5fad2ea879ff3ab9217cd21337.tar.xz
bootstd: Allow storing the OS command line in the bootflow
Some operating systems have a command line which can be adjusted before booting. Store this in the bootflow so it can be controlled within U-Boot. Fix up the example output while we are here, since there are a few new items. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/bootflow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index 018d021b81..a1c16ab93b 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -81,6 +81,7 @@ enum bootflow_flags_t {
* @fdt_size: Size of FDT file
* @fdt_addr: Address of loaded fdt
* @flags: Flags for the bootflow (see enum bootflow_flags_t)
+ * @cmdline: OS command line, or NULL if not known (allocated)
*/
struct bootflow {
struct list_head bm_node;
@@ -104,6 +105,7 @@ struct bootflow {
int fdt_size;
ulong fdt_addr;
int flags;
+ char *cmdline;
};
/**