diff options
author | Simon Glass | 2023-01-06 08:52:33 -0600 |
---|---|---|
committer | Tom Rini | 2023-01-16 18:26:50 -0500 |
commit | 2175e76a51e53798ee4e19903b368a7e6c98356a (patch) | |
tree | 4a21d37ed1f38bd596a8e2a7c6a112b4d23f4bae /include/bootflow.h | |
parent | 0e38bd848d41bcfc7a113603ee37805016a09a42 (diff) |
bootstd: Read the Operating System name for distro/scripts
Add the concept of an OS name to the bootflow. This typically includes the
OS name, version and kernel version.
Implement this for the distro and script bootmeths so that it works with
Armbian and older version of Fedora.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootflow.h')
-rw-r--r-- | include/bootflow.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bootflow.h b/include/bootflow.h index 32dbbbbe261..776158c65df 100644 --- a/include/bootflow.h +++ b/include/bootflow.h @@ -52,6 +52,8 @@ enum bootflow_state_t { * @buf: Bootflow file contents (allocated) * @size: Size of bootflow file in bytes * @err: Error number received (0 if OK) + * @os_name: Name of the OS / distro being booted, or NULL if not known + * (allocated) */ struct bootflow { struct list_head bm_node; @@ -68,6 +70,7 @@ struct bootflow { char *buf; int size; int err; + char *os_name; }; /** |