squashfs4: use upstream xz compression header format
[lede-git/.git] / tools / squashfs4 / patches / 160-expose_lzma_xz_options.patch
index d6063969d274278df08046a5c73ee38aea1bd404..9e1c1fbb1eafd04701cd09f4730d63038a90664d 100644 (file)
@@ -40,6 +40,7 @@
 +
 +
 +struct lzma_opts {
++      uint32_t dict_size;
 +      uint32_t flags;
 +#define LZMA_OPT_FLT_MASK     0xffff
 +#define LZMA_OPT_PRE_OFF      16
@@ -53,7 +54,6 @@
 +#define LZMA_OPT_PB_OFF               6
 +#define LZMA_OPT_PB_MASK      (0x7 << LZMA_OPT_PB_OFF)
 +      uint16_t fb;
-+      uint32_t dict_size;
 +};
 +
 +#if __BYTE_ORDER == __BIG_ENDIAN
                }
  
                name = argv[1];
-@@ -76,190 +73,50 @@ static int xz_options(char *argv[], int 
+@@ -76,190 +73,50 @@ static int xz_options(char *argv[], int
                        }
                        if(bcj[i].name == NULL) {
                                fprintf(stderr, "xz: -Xbcj unrecognised "
                SQUASHFS_METADATA_SIZE;
  
        filter[0].filter[0].id = LZMA_FILTER_LZMA2;
-@@ -323,14 +181,25 @@ static int xz_compress(void *strm, void 
+@@ -323,14 +181,25 @@ static int xz_compress(void *strm, void
          lzma_ret res = 0;
        struct xz_stream *stream = strm;
        struct filter *selected = NULL;