]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/mips/boot/compressed/decompress.c
MIPS: ZBOOT: Support XZ compression scheme
[karo-tx-linux.git] / arch / mips / boot / compressed / decompress.c
index 2c9573098c0dab7889895de68c2dae5bb9ad9ba8..cff7b7d1ff4505b02e49c047b19dd555ee01e35c 100644 (file)
@@ -43,7 +43,7 @@ void error(char *x)
 /* activate the code for pre-boot environment */
 #define STATIC static
 
-#ifdef CONFIG_KERNEL_GZIP
+#if defined(CONFIG_KERNEL_GZIP) || defined(CONFIG_KERNEL_XZ)
 void *memcpy(void *dest, const void *src, size_t n)
 {
        int i;
@@ -54,6 +54,8 @@ void *memcpy(void *dest, const void *src, size_t n)
                d[i] = s[i];
        return dest;
 }
+#endif
+#ifdef CONFIG_KERNEL_GZIP
 #include "../../../../lib/decompress_inflate.c"
 #endif
 
@@ -78,6 +80,10 @@ void *memset(void *s, int c, size_t n)
 #include "../../../../lib/decompress_unlzo.c"
 #endif
 
+#ifdef CONFIG_KERNEL_XZ
+#include "../../../../lib/decompress_unxz.c"
+#endif
+
 void decompress_kernel(unsigned long boot_heap_start)
 {
        unsigned long zimage_start, zimage_size;