diff options
author | Simon Glass | 2023-07-12 09:04:34 -0600 |
---|---|---|
committer | Bin Meng | 2023-07-16 23:13:17 +0800 |
commit | f4a91655c36a1a5fad2ea879ff3ab9217cd21337 (patch) | |
tree | a395cc77bb228bdc7de746688502a3b04e1e2ac2 /include/bootflow.h | |
parent | 2270c3639ae355e298f245ec1c9ba9f560bc7e5c (diff) |
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/bootflow.h')
-rw-r--r-- | include/bootflow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h index 018d021b810..a1c16ab93b7 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; }; /** |