From: Michael Jones <michael.jones@matrix-vision.de>
To: openembedded-devel@lists.openembedded.org
Cc: koen@dominion.thruhere.net, openembedded-core@lists.openembedded.org
Subject: Re: [oe] staging & using kernel headers
Date: Thu, 07 Apr 2011 15:03:14 +0200 [thread overview]
Message-ID: <4D9DB612.80002@matrix-vision.de> (raw)
In-Reply-To: <AANLkTikwK_F7Wep4pfj05PMrMsgcaQkBi9aUvtu07+GV@mail.gmail.com>
On 03/28/2011 06:39 PM, Khem Raj wrote:
> On Mon, Mar 28, 2011 at 5:42 AM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>>
>>> OK, so here's what I'm realizing, please correct me if I'm wrong:
>>> What I did unconventionally (ie. wrong) was to use a kernel version
>>> newer than my linux-libc-headers were. I should create a new
>>> linux-libc-headers recipe, as I had done with the kernel recipe, and
>>> build glibc and linux-libc-headers using my 2.6.38 kernel.
>>
>> We should *always* be using linux-libc-headers >= to the kernel version
>> being used.
>>
>
> If you use newer kernel should work ok why is that a problem ? kernel
> syscalls are backward compatible
> and we use oldest kernel version of like 2.6.16 for eglibc to build
> against so it should not be a problem
> to use different versions for kernel and kernel-headers. I think your
> problem lies elsewhere
>
There is a kernel interface in the V4L2 development tree that is being
introduced in 2.6.39 (but which in my local branch is patched on top of
2.6.38). The problem I kicked off this thread with was due to ti-dmai
and gstreamer-ti _directly_ using the headers from this kernel, which
since 2.6.32 gives a warning for doing so.
Of course, I'm using the newer kernel for a reason, which is to use the
new kernel API. So I need to use the headers from my local development
kernel (built by an OE recipe) when building that application, which I'm
now writing the recipe for. I thought at first that userspace apps were
automatically built against the headers derived from the kernel being
used (which is what the ti recipes do, but incorrectly). During this
thread I realized that linux-libc-headers is a separate recipe intended
for supplying user headers.
I suppose I will use the method for my V4L2 app that I kicked off this
thread with- staging the development kernel's headers with make_install
somewhere which can be used by my app. As Richard pointed out earlier
in this thread, making the package dependent on the kernel makes the
package machine dependent. This is OK for this package, but I still
want all other apps to be Angstrom-generic apps, so I don't want to
change linux-libc-headers to use my kernel headers after all.
MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
next prev parent reply other threads:[~2011-04-07 13:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4D832AA4.1020701@matrix-vision.de>
2011-03-18 9:55 ` staging & using kernel headers Koen Kooi
2011-03-25 13:38 ` Richard Purdie
2011-03-25 14:14 ` Michael Jones
2011-03-25 14:55 ` Richard Purdie
2011-03-25 16:02 ` Michael Jones
2011-03-28 12:42 ` [oe] " Richard Purdie
2011-03-28 16:39 ` Khem Raj
2011-04-07 13:03 ` Michael Jones [this message]
2011-04-06 15:47 ` Michael Jones
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=4D9DB612.80002@matrix-vision.de \
--to=michael.jones@matrix-vision.de \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@lists.openembedded.org \
--cc=openembedded-devel@lists.openembedded.org \
/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