summaryrefslogtreecommitdiffstats
path: root/lib/lz4
diff options
context:
space:
mode:
authorKyungsik Lee <kyungsik.lee@lge.com>2013-07-15 12:20:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-16 08:24:30 +0200
commitcdc837f4d90fbafd0d55634ea3acfda12120e1cd (patch)
tree08335c5a6675067942865c177732c5562a9e757c /lib/lz4
parente944e7f81069538265f01f21c0e7b1998730fea6 (diff)
downloadbarebox-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 'lib/lz4')
-rw-r--r--lib/lz4/Makefile1
-rw-r--r--lib/lz4/lz4_decompress.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/lz4/Makefile b/lib/lz4/Makefile
new file mode 100644
index 0000000000..7f548c6d1c
--- /dev/null
+++ b/lib/lz4/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_LZ4_DECOMPRESS) += lz4_decompress.o
diff --git a/lib/lz4/lz4_decompress.c b/lib/lz4/lz4_decompress.c
index d3414eae73..8e64ce6aec 100644
--- a/lib/lz4/lz4_decompress.c
+++ b/lib/lz4/lz4_decompress.c
@@ -38,10 +38,11 @@
*/
#ifndef STATIC
-#include <linux/module.h>
+#include <module.h>
#include <linux/kernel.h>
#endif
#include <linux/lz4.h>
+#include <linux/string.h>
#include <asm/unaligned.h>