瀏覽代碼

add lzma compression format to mkimage (will be used on infineon amazon)

SVN-Revision: 7718
Felix Fietkau 18 年之前
父節點
當前提交
07c8a6dab5
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      tools/mkimage/src/image.h
  2. 1 0
      tools/mkimage/src/mkimage.c

+ 1 - 0
tools/mkimage/src/image.h

@@ -133,6 +133,7 @@
 #define IH_COMP_NONE		0	/*  No	 Compression Used	*/
 #define IH_COMP_GZIP		1	/* gzip	 Compression Used	*/
 #define IH_COMP_BZIP2		2	/* bzip2 Compression Used	*/
+#define IH_COMP_LZMA		3	/* lzma  Compression Used	*/
 
 #define IH_MAGIC	0x27051956	/* Image Magic Number		*/
 #define IH_NMLEN		32	/* Image Name Length		*/

+ 1 - 0
tools/mkimage/src/mkimage.c

@@ -142,6 +142,7 @@ table_entry_t comp_name[] = {
     {	IH_COMP_NONE,	"none",		"uncompressed",		},
     {	IH_COMP_BZIP2,	"bzip2",	"bzip2 compressed",	},
     {	IH_COMP_GZIP,	"gzip",		"gzip compressed",	},
+    {	IH_COMP_LZMA,	"lzma",		"lzma compressed",	},
     {	-1,		"",		"",			},
 };