[PATCH 18/34] image: Add a new type for a command-line string

Simon Glass sjg at chromium.org
Fri Oct 18 01:23:57 CEST 2024


Some bootmeths package a commandline into the bootflow. Add support for
this as a file type.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 boot/image.c    | 1 +
 include/image.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/boot/image.c b/boot/image.c
index eaba9eb4332..f75b1e7841c 100644
--- a/boot/image.c
+++ b/boot/image.c
@@ -186,6 +186,7 @@ static const table_entry_t uimage_type[] = {
 	{	IH_TYPE_EXTLINUX_CFG, "extlinux_cfg", "Extlinux configuration" },
 	{	IH_TYPE_EFI, "efi", "EFI applicaiton" },
 	{	IH_TYPE_LOGO, "logo", "Logo image" },
+	{	IH_TYPE_CMDLINE, "cmdline", "Command-line string" },
 	{	-1,		    "",		  "",			},
 };
 
diff --git a/include/image.h b/include/image.h
index 0d1adee499b..ff23fdbe22a 100644
--- a/include/image.h
+++ b/include/image.h
@@ -235,6 +235,7 @@ enum image_type_t {
 	IH_TYPE_EXTLINUX_CFG,		/* extlinux configuration-file */
 	IH_TYPE_EFI,			/* EFI PE image */
 	IH_TYPE_LOGO,			/* Image / logo */
+	IH_TYPE_CMDLINE,		/* OS command-line string */
 
 	IH_TYPE_COUNT,			/* Number of image types */
 };
-- 
2.34.1



More information about the U-Boot mailing list