diff options
author | Kyungsik Lee <kyungsik.lee@lge.com> | 2013-07-15 12:20:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-16 08:24:30 +0200 |
commit | cdc837f4d90fbafd0d55634ea3acfda12120e1cd (patch) | |
tree | 08335c5a6675067942865c177732c5562a9e757c /include | |
parent | e944e7f81069538265f01f21c0e7b1998730fea6 (diff) | |
download | barebox-cdc837f4d90fbafd0d55634ea3acfda12120e1cd.tar.gz barebox-cdc837f4d90fbafd0d55634ea3acfda12120e1cd.tar.xz |
lib: Add support for LZ4-compressed kernel
This patch adds support for extracting LZ4-compressed kernel images,
as well as LZ4-compressed ramdisk images in the kernel boot process.
This depends on the patch below
decompressor: Add LZ4 decompressor module
Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 1 | ||||
-rw-r--r-- | include/linux/decompress/unlz4.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h index c73c64aa60..1b90805993 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -10,6 +10,7 @@ enum filetype { filetype_unknown, filetype_arm_zimage, filetype_lzo_compressed, + filetype_lz4_compressed, filetype_arm_barebox, filetype_uimage, filetype_ubi, diff --git a/include/linux/decompress/unlz4.h b/include/linux/decompress/unlz4.h new file mode 100644 index 0000000000..7aaafc2b1c --- /dev/null +++ b/include/linux/decompress/unlz4.h @@ -0,0 +1,10 @@ +#ifndef DECOMPRESS_UNLZ4_H +#define DECOMPRESS_UNLZ4_H + +int decompress_unlz4(unsigned char *inbuf, int len, + int(*fill)(void*, unsigned int), + int(*flush)(void*, unsigned int), + unsigned char *output, + int *pos, + void(*error)(char *x)); +#endif |