summaryrefslogtreecommitdiffstats
path: root/arch/sh/boot/compressed/misc_64.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-07-11 13:21:19 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-07-11 13:21:19 -0400
commit07e88e1bfc128681a80578724fde6a872f413862 (patch)
tree7e85e26152bcc277d6e2e288aac155f155ce5c4e /arch/sh/boot/compressed/misc_64.c
parentdf8ce2595fbac8b046322fce9df61ce1cf8ddf62 (diff)
downloadop-kernel-dev-07e88e1bfc128681a80578724fde6a872f413862.zip
op-kernel-dev-07e88e1bfc128681a80578724fde6a872f413862.tar.gz
sh: bzip2/lzma zImage support.
This plugs in bzip2 and lzma support for zImages. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot/compressed/misc_64.c')
-rw-r--r--arch/sh/boot/compressed/misc_64.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/sh/boot/compressed/misc_64.c b/arch/sh/boot/compressed/misc_64.c
index 0c6894e..09b7b7c 100644
--- a/arch/sh/boot/compressed/misc_64.c
+++ b/arch/sh/boot/compressed/misc_64.c
@@ -40,12 +40,24 @@ extern int _end;
static unsigned long free_mem_ptr;
static unsigned long free_mem_end_ptr;
-#define HEAP_SIZE 0x10000
+#ifdef CONFIG_HAVE_KERNEL_BZIP2
+#define HEAP_SIZE 0x400000
+#else
+#define HEAP_SIZE 0x10000
+#endif
#ifdef CONFIG_KERNEL_GZIP
#include "../../../../lib/decompress_inflate.c"
#endif
+#ifdef CONFIG_KERNEL_BZIP2
+#include "../../../../lib/decompress_bunzip2.c"
+#endif
+
+#ifdef CONFIG_KERNEL_LZMA
+#include "../../../../lib/decompress_unlzma.c"
+#endif
+
void puts(const char *s)
{
}
OpenPOWER on IntegriCloud