[yocto] Sharing header files between out-of-tree KLMs

Daniel. danielhilst at gmail.com
Wed Jun 22 05:59:53 PDT 2016


You may want to add headers to the -dev packages and DEPENDS on it
since you will not need headers at final image,

Regards,

2016-06-21 19:13 GMT-03:00 Khem Raj <raj.khem at gmail.com>:
> may be first one stages the header into build sysroot and otherone
> adds a DEPENDS on the first one and expects it in
> <sysroot>/usr/include/<yourmodule/
>
> On Wed, Jun 8, 2016 at 6:11 AM, Vuille, Martin (Martin)
> <vmartin at avaya.com> wrote:
>> I am building two out-of-tree KLMs with separate yocto recipes.
>>
>>
>>
>> One of the KLMs depends on a data structure defined in the other one. At
>>
>> present the structure definition is simply duplicated in both KLMs’ source.
>>
>> I would prefer to define it in a header that one KLM can export and the
>> other
>>
>> can #include.
>>
>>
>>
>> Is there a recommended/canonical way to do this?
>>
>>
>>
>> MV
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
"Do or do not. There is no try"
  Yoda Master



More information about the yocto mailing list