add lzma compression format to mkimage (will be used on infineon amazon)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2007 04:59:27 +0000 (04:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 24 Jun 2007 04:59:27 +0000 (04:59 +0000)
SVN-Revision: 7718

tools/mkimage/src/image.h
tools/mkimage/src/mkimage.c

index 2f575fd2d76f98f5d3ba977e4fc9d0da6fc7d7d2..cb62cde5b31fba1ce6077731f97f4b811aee3a75 100644 (file)
 #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            */
index f3796acf078559b1d50e73748820d7e3b6366faf..6ba400a47e8d5af6cdbca4a2e615afe897f03166 100644 (file)
@@ -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,             "",             "",                     },
 };