mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/2] udev: Use ptxdist kernel headers
Date: Tue, 20 Sep 2011 11:00:40 +0200	[thread overview]
Message-ID: <20110920090040.GT27632@pengutronix.de> (raw)
In-Reply-To: <CAMwGMjwRTGc8FbmhrEzBh=MVmhRG_iaj_W5D0Cu2ZS74zbo9=w@mail.gmail.com>

On Mon, Sep 19, 2011 at 11:37:10PM -0400, Jon Ringle wrote:
> On Wed, Aug 17, 2011 at 7:05 AM,  <bernhard@bwalle.de> wrote:
> > From: Bernhard Walle <walle@corscience.de>
> >
> > When a toolchain without kernel headers (such as the Lite version from
> > Codesourcery) or with very old kernel header is used, udev doesn't build
> > because videodev.h is missing.
> >
> > This patch adds the $(KERNEL_HEADERS_INCLUDE_DIR) to the include path of
> > udev like it's done for busybox or barebox.
> >
> > Tested on ARM with kernel headers 2.6.36.4 (the version
> > OSELAS.Toolchain() is currently using).
> >
> > Signed-off-by: Bernhard Walle <walle@corscience.de>
> > ---
> >  rules/udev.make |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/rules/udev.make b/rules/udev.make
> > index ac2f0d4..b57bd01 100644
> > --- a/rules/udev.make
> > +++ b/rules/udev.make
> > @@ -47,6 +47,11 @@ $(UDEV_SOURCE):
> >
> >  #
> >  # autoconf
> > +
> > +UDEV_CONF_ENV := \
> > +       $(CROSS_ENV) \
> > +       CPPFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)"
> > +
> 
> This breaks udev for me. #include <scsi/scsi.h> includes the wrong header file:

This is a bug in the kernel (2.6.31-.34). scsi/scsi.h should not be
installed. Use a different version for the kernel headers or apply the
patch I mentioned[1] before.

Michael

[1] http://article.gmane.org/gmane.comp.embedded.ptxdist.devel/8046

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2011-09-20  9:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20110817095613.GU20524@pengutronix.de>
     [not found] ` <1313579150-8834-1-git-send-email-bernhard@bwalle.de>
2011-09-20  3:37   ` Jon Ringle
2011-09-20  5:53     ` Bernhard Walle
2011-09-20  9:00     ` Michael Olbrich [this message]

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=20110920090040.GT27632@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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