From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] linux: CONFIG_KERNEL_LZO option requires host-lzop
Date: Mon, 13 May 2013 10:04:21 +0200 [thread overview]
Message-ID: <20130513100421.4a84d09f@skate> (raw)
In-Reply-To: <1368431920-22020-1-git-send-email-fabio.porcedda@gmail.com>
Dear Fabio Porcedda,
On Mon, 13 May 2013 09:58:40 +0200, Fabio Porcedda wrote:
> When the LZO compression mode is chosen the linux kernel requires
> lzop host utility at build time.
>
> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
> ---
> linux/linux.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index d375cf0..3877c35 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -34,7 +34,7 @@ endif
> LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
>
> LINUX_INSTALL_IMAGES = YES
> -LINUX_DEPENDENCIES += host-module-init-tools
> +LINUX_DEPENDENCIES += host-module-init-tools host-lzop
Yeah, I know about this problem, but I'm not entirely happy with this
solution. Since we can't have dependencies that depend on the kernel
configuration (because at the time make parses linux.mk, the kernel
configuration hasn't been created yet), we have to make host-lzop a
mandatory dependency. Then, later on, someone will came up with the
same problem for the LZMA compression. And then the kernel, in some
special case will need yet another tool installed on the host machine.
I agree that host-lzop is not huge, but it's a pain to have things
being built that will not be used.
The only alternative that I see is that the kernel compression should
be selected in Buildroot, which will then enforce this selection into
the kernel configuration. Therefore, Buildroot will have the knowledge
of which compression tools will be needed.
Now, whether this alternative really scales if the kernel starts to
have more and more host dependencies, I don't know.
Thoughts? Ideas? Maybe I'm just nitpicking here?
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-05-13 8:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 7:58 [Buildroot] [PATCH] linux: CONFIG_KERNEL_LZO option requires host-lzop Fabio Porcedda
2013-05-13 8:04 ` Thomas Petazzoni [this message]
2013-05-14 9:02 ` Fabio Porcedda
2013-05-14 9:16 ` Thomas Petazzoni
2013-05-14 15:30 ` Peter Korsgaard
2013-05-14 15:31 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130513100421.4a84d09f@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox