summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-06 17:52:33 +0300
committerTom Rini <trini@konsulko.com>2023-01-17 02:26:50 +0300
commit2175e76a51e53798ee4e19903b368a7e6c98356a (patch)
tree4a21d37ed1f38bd596a8e2a7c6a112b4d23f4bae /cmd
parent0e38bd848d41bcfc7a113603ee37805016a09a42 (diff)
downloadu-boot-2175e76a51e53798ee4e19903b368a7e6c98356a.tar.xz
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 'cmd')
-rw-r--r--cmd/bootflow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index 313103d277..6b8ac8c850 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -337,6 +337,7 @@ static int do_bootflow_info(struct cmd_tbl *cmdtp, int flag, int argc,
printf("Filename: %s\n", bflow->fname);
printf("Buffer: %lx\n", (ulong)map_to_sysmem(bflow->buf));
printf("Size: %x (%d bytes)\n", bflow->size, bflow->size);
+ printf("OS: %s\n", bflow->os_name ? bflow->os_name : "(none)");
printf("Error: %d\n", bflow->err);
if (dump && bflow->buf) {
/* Set some sort of maximum on the size */