summaryrefslogtreecommitdiffstats
path: root/tools/mkimage
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-24 04:59:27 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-24 04:59:27 +0000
commit9a9d15ed063b02c1c7d786e39e593f9723c96927 (patch)
tree48f7de1822bd0c903264275bc6c3c1f6df845c0a /tools/mkimage
parentbdc8154f12b299ff5402bcb391c8739b359a3b8c (diff)
add lzma compression format to mkimage (will be used on infineon amazon)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7718 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mkimage')
-rw-r--r--tools/mkimage/src/image.h1
-rw-r--r--tools/mkimage/src/mkimage.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/mkimage/src/image.h b/tools/mkimage/src/image.h
index 2f575fd2d..cb62cde5b 100644
--- a/tools/mkimage/src/image.h
+++ b/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 */
diff --git a/tools/mkimage/src/mkimage.c b/tools/mkimage/src/mkimage.c
index f3796acf0..6ba400a47 100644
--- a/tools/mkimage/src/mkimage.c
+++ b/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, "", "", },
};