[oe] [PATCH, RFC] Add linux-libc-headers-native, make it default dep for native

Khem Raj raj.khem at gmail.com
Tue Jun 8 14:04:52 UTC 2010


On Mon, Jun 7, 2010 at 11:36 PM, Frans Meulenbroeks
<fransmeulenbroeks at gmail.com> wrote:
> 2010/6/7 Tom Rini <tom_rini at mentor.com>:
>> On some host distributions the provided linux kernel headers are too old
>> to compile utilities we need[1].  Given that we need these utilities to
>> run things on the target the best solution is to provide
>> linux-libc-headers-native.  Rather than get things into an inconsistent
>> state, we make linux-libc-headers-native be a default dependency.
>>
>> [1]: A prime example of this would be mtd-utils-native and UBI
>
> I'd say this is heading in the totally wrong direction.
>
> Target code should not depend on host headers.
> And if you need the target headers, you should depend on and use
> linux-libc-headers.
>
> I guess mtd-utils-native is used to make an mtd image for the target
> and as such I would expect it to use the target headers.

no. mtd-utils-native itself is a host utility so to build it we need tools
and development files for the host not the target.

>
> What would be the difference between linux-libc-headers and
> linux-libc-headers-native in the first place?

one is for target (e.g. arm) and another one would be your build system
(e.g. x86)

> (and if there is a difference, I think a better package name would be
> linux-libc-headers-cross).

cross is for something which runs on host and generates code for target


>
> Btw if say mtd-utils-native needs kernel headers to access host
> functionality using headers for a different kernel version seems to be
> a no-no either.
>
> Just my eur 0.02
>
> Frans.
>
> PS: which distributions/distribution versions/kernel versions do have
> this problem?
> Ubuntu 8.04 (which has a 2.6.24 kernel) does not seem to exhibit this problem).
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>




More information about the Openembedded-devel mailing list