summaryrefslogtreecommitdiffstats
path: root/lib/uncompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uncompress.c')
-rw-r--r--lib/uncompress.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/uncompress.c b/lib/uncompress.c
index a4225aaeb4..329c9fc366 100644
--- a/lib/uncompress.c
+++ b/lib/uncompress.c
@@ -21,6 +21,7 @@
#include <bunzip2.h>
#include <gunzip.h>
#include <lzo.h>
+#include <linux/xz.h>
#include <linux/decompress/unlz4.h>
#include <errno.h>
#include <filetype.h>
@@ -118,6 +119,11 @@ int uncompress(unsigned char *inbuf, int len,
compfn = decompress_unlz4;
break;
#endif
+#ifdef CONFIG_XZ_DECOMPRESS
+ case filetype_xz_compressed:
+ compfn = decompress_unxz;
+ break;
+#endif
default:
err = asprintf("cannot handle filetype %s", file_type_to_string(ft));
error_fn(err);