* [PATCH] MIPS: Add support of LZO-compressed kernels
@ 2010-01-15 7:31 Wu Zhangjin
2010-01-15 10:30 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Wu Zhangjin @ 2010-01-15 7:31 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, Wu Zhangjin
The commit "lib: add support for LZO-compressed kernels" has been merged
into linus' 2.6.33-rc4 tree, so, It is time to add the support for MIPS.
NOTE: to enable this support, the lzop application is needed.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/Kconfig | 1 +
arch/mips/boot/compressed/Makefile | 2 ++
arch/mips/boot/compressed/decompress.c | 4 ++++
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 9541171..8b5d174 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1311,6 +1311,7 @@ config SYS_SUPPORTS_ZBOOT
select HAVE_KERNEL_GZIP
select HAVE_KERNEL_BZIP2
select HAVE_KERNEL_LZMA
+ select HAVE_KERNEL_LZO
config SYS_SUPPORTS_ZBOOT_UART16550
bool
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index 671d344..e3c93f8 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -41,9 +41,11 @@ $(obj)/vmlinux.bin: $(KBUILD_IMAGE)
suffix_$(CONFIG_KERNEL_GZIP) = gz
suffix_$(CONFIG_KERNEL_BZIP2) = bz2
suffix_$(CONFIG_KERNEL_LZMA) = lzma
+suffix_$(CONFIG_KERNEL_LZO) = lzo
tool_$(CONFIG_KERNEL_GZIP) = gzip
tool_$(CONFIG_KERNEL_BZIP2) = bzip2
tool_$(CONFIG_KERNEL_LZMA) = lzma
+tool_$(CONFIG_KERNEL_LZO) = lzo
$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin
$(call if_changed,$(tool_y))
diff --git a/arch/mips/boot/compressed/decompress.c b/arch/mips/boot/compressed/decompress.c
index e48fd72..55d02b3 100644
--- a/arch/mips/boot/compressed/decompress.c
+++ b/arch/mips/boot/compressed/decompress.c
@@ -77,6 +77,10 @@ void *memset(void *s, int c, size_t n)
#include "../../../../lib/decompress_unlzma.c"
#endif
+#ifdef CONFIG_KERNEL_LZO
+#include "../../../../lib/decompress_unlzo.c"
+#endif
+
void decompress_kernel(unsigned long boot_heap_start)
{
int zimage_size;
--
1.6.5.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: Add support of LZO-compressed kernels
2010-01-15 7:31 [PATCH] MIPS: Add support of LZO-compressed kernels Wu Zhangjin
@ 2010-01-15 10:30 ` Sergei Shtylyov
2010-01-15 12:26 ` Wu Zhangjin
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2010-01-15 10:30 UTC (permalink / raw)
To: Wu Zhangjin; +Cc: Ralf Baechle, linux-mips
Hello.
Wu Zhangjin wrote:
> The commit "lib: add support for LZO-compressed kernels" has been merged
> into linus' 2.6.33-rc4 tree, so, It is time to add the support for MIPS.
>
> NOTE: to enable this support, the lzop application is needed.
>
> Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
>
[...]
> diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
> index 671d344..e3c93f8 100644
> --- a/arch/mips/boot/compressed/Makefile
> +++ b/arch/mips/boot/compressed/Makefile
> @@ -41,9 +41,11 @@ $(obj)/vmlinux.bin: $(KBUILD_IMAGE)
> suffix_$(CONFIG_KERNEL_GZIP) = gz
> suffix_$(CONFIG_KERNEL_BZIP2) = bz2
> suffix_$(CONFIG_KERNEL_LZMA) = lzma
> +suffix_$(CONFIG_KERNEL_LZO) = lzo
> tool_$(CONFIG_KERNEL_GZIP) = gzip
> tool_$(CONFIG_KERNEL_BZIP2) = bzip2
> tool_$(CONFIG_KERNEL_LZMA) = lzma
> +tool_$(CONFIG_KERNEL_LZO) = lzo
>
You should align "lzo" with the rest of the suffixes/tool names.
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: Add support of LZO-compressed kernels
2010-01-15 10:30 ` Sergei Shtylyov
@ 2010-01-15 12:26 ` Wu Zhangjin
0 siblings, 0 replies; 3+ messages in thread
From: Wu Zhangjin @ 2010-01-15 12:26 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Ralf Baechle, linux-mips
On Fri, 2010-01-15 at 13:30 +0300, Sergei Shtylyov wrote:
> Hello.
>
> Wu Zhangjin wrote:
> > The commit "lib: add support for LZO-compressed kernels" has been merged
> > into linus' 2.6.33-rc4 tree, so, It is time to add the support for MIPS.
> >
> > NOTE: to enable this support, the lzop application is needed.
> >
> > Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
> >
> [...]
> > diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
> > index 671d344..e3c93f8 100644
> > --- a/arch/mips/boot/compressed/Makefile
> > +++ b/arch/mips/boot/compressed/Makefile
> > @@ -41,9 +41,11 @@ $(obj)/vmlinux.bin: $(KBUILD_IMAGE)
> > suffix_$(CONFIG_KERNEL_GZIP) = gz
> > suffix_$(CONFIG_KERNEL_BZIP2) = bz2
> > suffix_$(CONFIG_KERNEL_LZMA) = lzma
> > +suffix_$(CONFIG_KERNEL_LZO) = lzo
> > tool_$(CONFIG_KERNEL_GZIP) = gzip
> > tool_$(CONFIG_KERNEL_BZIP2) = bzip2
> > tool_$(CONFIG_KERNEL_LZMA) = lzma
> > +tool_$(CONFIG_KERNEL_LZO) = lzo
> >
>
> You should align "lzo" with the rest of the suffixes/tool names.
>
Done, will resend it later.
Thanks!
Wu Zhangjin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-15 12:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15 7:31 [PATCH] MIPS: Add support of LZO-compressed kernels Wu Zhangjin
2010-01-15 10:30 ` Sergei Shtylyov
2010-01-15 12:26 ` Wu Zhangjin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).