X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=lib%2Fdecompress.c;h=4d1cd0397aab0d9857f7a82f528c72946b520f87;hb=ee3e542fec6e69bc9fb668698889a37d93950ddf;hp=f8fdedaf7b3de836e5478f61d4c354c0e9ec39d2;hpb=188af63c0af2d7ef395bc94e3efa173f34dae03d;p=~andy%2Flinux diff --git a/lib/decompress.c b/lib/decompress.c index f8fdedaf7b3..4d1cd0397aa 100644 --- a/lib/decompress.c +++ b/lib/decompress.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -31,6 +32,9 @@ #ifndef CONFIG_DECOMPRESS_LZO # define unlzo NULL #endif +#ifndef CONFIG_DECOMPRESS_LZ4 +# define unlz4 NULL +#endif struct compress_format { unsigned char magic[2]; @@ -45,6 +49,7 @@ static const struct compress_format compressed_formats[] __initconst = { { {0x5d, 0x00}, "lzma", unlzma }, { {0xfd, 0x37}, "xz", unxz }, { {0x89, 0x4c}, "lzo", unlzo }, + { {0x02, 0x21}, "lz4", unlz4 }, { {0, 0}, NULL, NULL } };