lkml.org 
[lkml]   [2013]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Uncompressed kernel doesn't build on x86_64
On Wed, Nov 13, 2013 at 11:34:18AM -0500, Pavel Roskin wrote:
> Hi Christian,
>
> Your recent patch enables uncompressed kernels, but selecting that
> option (CONFIG_KERNEL_UNCOMPRESSED) fails on x86_86:
> [...]
> arch/x86/boot/compressed/Makefile has no provision for uncompressed
> files. There is no definition for suffix-$(CONFIG_KERNEL_UNCOMPRESSED)
> so $(suffix-y) evaluates to an empty string and there is no rule to
> make vmlinuz.bin.$(suffix-y)
>
> I think the patch should be either reverted or fixed as soon as
> possible.

This is an interesting observation, thanks. Although this patch is
rather intended for embedded architectures than x86, it highlights
potential issues with self-decompressing images of all sorts. I have no
way of testing all architectures and so I'm sending two patches in the
follow-up:
1. A conservative version of the original patch which requires
architectures to explicitly enable uncompresed kernel images if they
support compression as well and falls back to previous behaviour if
nothing is specified. I have copied Vineet Gupta (maintainer of the
ARC platform) since I enabled GZIP and uncompressed kernels for ARC
by default.
2. A patch to enable uncompressed x86 kernels. As stated above, I don't
think this makes a lot of sense in itself but it might serve as an
example for people working on other platforms with self-extracting
kernels and the nozip not-decompression algorithm might be useful on
those platforms as well. I only had a single x86-64 machine available
to test this, however, so some more testing might be required.

> Any suggestions for uncompressed suffix? I'd go with "copy". Then the
> "compression" could be a symlink. Alternatively, the "." could be
> included in other suffixes, the uncompressed suffix would be empty and
> the compression would be an empty statement.

I followed H. Peter's suggestion and chose option 2 in patch 2.

Greetings,
Christian


\
 
 \ /
  Last update: 2013-11-14 10:01    [W:1.132 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site