All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/7] lttng-modules: new package
Date: Thu, 22 Dec 2011 14:16:05 +0100	[thread overview]
Message-ID: <20111222141605.160d5b67@skate> (raw)
In-Reply-To: <CAAXf6LUiqde1C2zY=aoKkRCc37r-ZASSfavVCX1WmwWT9g=TyA@mail.gmail.com>

Le Thu, 22 Dec 2011 14:03:14 +0100,
Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> a ?crit :

> On an old system, I have noticed a problem with this approach. With
> the above line, the 'depmod' utility of the host will be used instead
> of the depmod that was built with the linux kernel in $(LINUX_DIR). If
> the host depmod is very old, a segmentation fault occurs.
> 
> To fix this, one should add DEPMOD="$(HOST_DIR)/usr/sbin/depmod" to
> the command, just as linux/linux.mk does it.  

Ah, ok. Then maybe this DEPMOD=... variable should be part of
LINUX_MAKE_FLAGS.

> In fact, since building kernel modules from buildroot is not uncommon
> anymore (there are some packages in the tree that do it, plus
> user-specific packages, wouldn't it be a good idea to provide a small
> infrastructure for building kernel modules? This would prevent such
> mistakes. Instead of gentargets, we could have something like
> kernelmodule.
> What do you think about that?  

I don't know. I am not exactly sure because there is no real standard
way for packaging external kernel modules. If you look at linux-fusion,
RTAI or lttng-modules, you'll see that the build mechanism is very
different. I'm not sure there is a real pattern here that we can
factorize nicely in an infrastructure. Which pattern do you see?

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-12-22 13:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-22  9:57 [Buildroot] [pull request v2] Pull request for branch for-2012.02/lttng Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 1/7] liburcu: new package Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 2/7] lttng-modules: " Thomas Petazzoni
2011-12-22 13:03   ` Thomas De Schampheleire
2011-12-22 13:16     ` Thomas Petazzoni [this message]
2012-01-12 22:05       ` Arnout Vandecappelle
2011-12-22  9:57 ` [Buildroot] [PATCH 3/7] lttng-tools: " Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 4/7] popt: add host variant for host-lttng-babeltrace Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 5/7] util-linux: " Thomas Petazzoni
2012-01-12 22:12   ` Arnout Vandecappelle
2012-01-13  8:23     ` Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 6/7] lttng-babeltrace: new package Thomas Petazzoni
2011-12-22  9:57 ` [Buildroot] [PATCH 7/7] lttng-libust: " Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2011-12-21 22:30 [Buildroot] [pull request] Pull request for branch for-2012.02/lttng Thomas Petazzoni
2011-12-21 22:30 ` [Buildroot] [PATCH 2/7] lttng-modules: new package Thomas Petazzoni

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=20111222141605.160d5b67@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.