summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2024-11-15 16:19:23 -0700
committerTom Rini <[email protected]>2025-01-15 08:48:42 -0600
commitd9055f5e4f3c62e693991e15222804ed6c1a93ef (patch)
tree6f3585f9eac9db8e6831e12dc775fa7f85c03f0a /include
parent59a9a1453703429e1d7966cb46b176994d554127 (diff)
bootstd: Add a simple command to list images
Add a new 'bootstd images' command, which lists the images which have been loaded. Update some existing tests to use it. Provide some documentation about images in general and this command in particular. Use a more realistic kernel command-line to make the test easier to follow. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/bootflow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h
index e09cff285e4..480cf8a5af1 100644
--- a/include/bootflow.h
+++ b/include/bootflow.h
@@ -627,5 +627,13 @@ const char *bootflow_img_type_name(enum bootflow_img_t type);
struct bootflow_img *bootflow_img_add(struct bootflow *bflow, const char *fname,
enum bootflow_img_t type, ulong addr,
ulong size);
+/**
+ * bootflow_get_seq() - Get the sequence number of a bootflow
+ *
+ * Bootflows are numbered by their position in the bootstd list.
+ *
+ * Return: Sequence number of bootflow (0 = first)
+ */
+int bootflow_get_seq(const struct bootflow *bflow);
#endif