[poky] Extending meta-toolchain-sdk

Mike Detwiler j.michael.detwiler at gmail.com
Wed Nov 3 07:47:16 PDT 2010


On Tue, Nov 2, 2010 at 11:47 PM, Saul Wold <saul.wold at intel.com> wrote:
> On 11/02/2010 06:36 PM, Cui, Dexuan wrote:
>>
>> Mike Detwiler wrote:
>>>
>>> I have run 'bitbake meta-toolchain-sdk' and installed the tarball that
>>> it generates. However, I found that the sdk did not contain all the
>>> third-party libraries that I would like it to have. For example, the
>>> application I'm developing has a dependency on libgmp. I notice that
>>> there are bitbake files for gmp in meta/recipes-support/gmp. Is there
>>> a simple way (e.g. in build/conf/local.conf) to have this added to the
>>> list of libraries that are included in the sdk?
>>> -Mike
>>
>> Hi Mike,
>> Can you please try the patch below?

Dexuan, the patch did work. Thanks!

> Mike, Dexuan:
>
> A better way to do this is to define SDK-EXTRAs in the local.conf file:
>
> SDK-EXTRAS += "libgmp"

Saul, adding this line to my local.conf produced an error saying
nothing provides libgmp.

I tried the following line instead:

SDK-EXTRAS += "gmp-dev"

This did not produce an error, but it also did not seem to add the
library to the sdk. Is it possible that this is because the variable
SDK-EXTRAS is also set in meta/recipes-gnome/tasks/task-sdk-gmae.inc
with the line below.

SDK-EXTRAS = ""

It looks like this could clobber my setting of the variable, depending
on the order of evaluation.

I agree that your suggestion is a more desirable approach than
modifying the poky sources directly. I would also be willing to use
the layers approach suggested in section 3.4 of the poky handbook, but
I'm still trying to learn how to make that work. Any tips or
suggestions would be much appreciated.

Thanks,

-Mike



More information about the poky mailing list