[U-Boot] [PATCH] common, image: introduce new uimage types

Heiko Schocher hs at denx.de
Sun Jan 15 08:45:49 CET 2012


- ubootimage
  U-Boot image
- splimage
  SPL image
- dfenvimage
  Default Environment image
- ublheader
  TI davinci UBL header image

Signed-off-by: Heiko Schocher <hs at denx.de>
---
 common/image.c  |    6 +++++-
 include/image.h |    4 ++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/common/image.c b/common/image.c
index 202c8a1..aca1318 100644
--- a/common/image.c
+++ b/common/image.c
@@ -133,6 +133,7 @@ static const table_entry_t uimage_os[] = {
 
 static const table_entry_t uimage_type[] = {
 	{	IH_TYPE_AISIMAGE,   "aisimage",   "Davinci AIS image",},
+	{	IH_TYPE_DFENVIMAGE, "dfenvimage", "default Env image",  },
 	{	IH_TYPE_FILESYSTEM, "filesystem", "Filesystem Image",	},
 	{	IH_TYPE_FIRMWARE,   "firmware",	  "Firmware",		},
 	{	IH_TYPE_FLATDT,     "flat_dt",    "Flat Device Tree",	},
@@ -145,8 +146,11 @@ static const table_entry_t uimage_type[] = {
 	{	IH_TYPE_OMAPIMAGE,  "omapimage",  "TI OMAP SPL With GP CH",},
 	{	IH_TYPE_RAMDISK,    "ramdisk",	  "RAMDisk Image",	},
 	{	IH_TYPE_SCRIPT,     "script",	  "Script",		},
+	{	IH_TYPE_SPLIMAGE,   "splimage",   "SPL image",          },
 	{	IH_TYPE_STANDALONE, "standalone", "Standalone Program", },
-	{	IH_TYPE_UBLIMAGE,   "ublimage",   "Davinci UBL image",},
+	{	IH_TYPE_UBOOTIMAGE, "ubootimage", "U-Boot image",       },
+	{	IH_TYPE_UBLHEADER,  "ublheader",  "UBL header image",   },
+	{	IH_TYPE_UBLIMAGE,   "ublimage",   "Davinci UBL image",  },
 	{	-1,		    "",		  "",			},
 };
 
diff --git a/include/image.h b/include/image.h
index bbf80f0..3b5bd51 100644
--- a/include/image.h
+++ b/include/image.h
@@ -164,6 +164,10 @@
 #define IH_TYPE_OMAPIMAGE	12	/* TI OMAP Config Header Image	*/
 #define IH_TYPE_AISIMAGE	13	/* TI Davinci AIS Image		*/
 #define IH_TYPE_KERNEL_NOLOAD	14	/* OS Kernel Image, can run from any load address */
+#define IH_TYPE_UBOOTIMAGE	15	/* U-Boot image			*/
+#define IH_TYPE_SPLIMAGE	16	/* SPL image			*/
+#define IH_TYPE_DFENVIMAGE	17	/* default Environment Image	*/
+#define IH_TYPE_UBLHEADER	18	/* UBL Header image		*/
 
 /*
  * Compression Types
-- 
1.7.7.4



More information about the U-Boot mailing list