[cmp] add pkzip decompression support

* Now you can install a Raspbian image without having to decompress it first ;)
This commit is contained in:
Pete Batard 2015-06-20 18:40:55 +01:00
parent 7567ddef07
commit 517a14ccb1
14 changed files with 422 additions and 21 deletions

View file

@ -225,11 +225,12 @@ typedef struct {
} comp_assoc;
static comp_assoc file_assoc[] = {
{ ".xz", BLED_COMPRESSION_XZ },
{ ".zip", BLED_COMPRESSION_ZIP },
{ ".Z", BLED_COMPRESSION_LZW },
{ ".gz", BLED_COMPRESSION_GZIP },
{ ".lzma", BLED_COMPRESSION_LZMA },
{ ".bz2", BLED_COMPRESSION_BZIP2 },
{ ".Z", BLED_COMPRESSION_LZW },
{ ".xz", BLED_COMPRESSION_XZ },
};
// For now we consider that an image that matches a known extension is bootable