summaryrefslogtreecommitdiffstats
path: root/pbl
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-07-15 12:20:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-22 09:15:32 +0200
commit618d669117e9e59a11b389a1c06610e1a3c3aa70 (patch)
treeefc3f9d2307fc91a3a39b9a7d76fd1536ab40240 /pbl
parentcdc837f4d90fbafd0d55634ea3acfda12120e1cd (diff)
downloadbarebox-618d669117e9e59a11b389a1c06610e1a3c3aa70.tar.gz
pbl: add lz4 support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
-rw-r--r--pbl/Kconfig4
-rw-r--r--pbl/decomp.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/pbl/Kconfig b/pbl/Kconfig
index a37c976..dc31357 100644
--- a/pbl/Kconfig
+++ b/pbl/Kconfig
@@ -53,6 +53,10 @@ if IMAGE_COMPRESSION
choice
prompt "Compression"
+ default IMAGE_COMPRESSION_LZO
+
+config IMAGE_COMPRESSION_LZ4
+ bool "lz4"
config IMAGE_COMPRESSION_LZO
bool "lzo"
diff --git a/pbl/decomp.c b/pbl/decomp.c
index aa6a31e..ca0df64 100644
--- a/pbl/decomp.c
+++ b/pbl/decomp.c
@@ -10,6 +10,10 @@
#define STATIC static
+#ifdef CONFIG_IMAGE_COMPRESSION_LZ4
+#include "../../../lib/decompress_unlz4.c"
+#endif
+
#ifdef CONFIG_IMAGE_COMPRESSION_LZO
#include "../../../lib/decompress_unlzo.c"
#endif