All of lore.kernel.org
 help / color / mirror / Atom feed
* Extending meta-toolchain-sdk
@ 2010-11-02 20:50 Mike Detwiler
  2010-11-03  1:36 ` Cui, Dexuan
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Detwiler @ 2010-11-02 20:50 UTC (permalink / raw)
  To: poky

Hello,

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?

Best regards,

-Mike


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Extending meta-toolchain-sdk
  2010-11-02 20:50 Extending meta-toolchain-sdk Mike Detwiler
@ 2010-11-03  1:36 ` Cui, Dexuan
  2010-11-03  3:47   ` Saul Wold
  0 siblings, 1 reply; 5+ messages in thread
From: Cui, Dexuan @ 2010-11-03  1:36 UTC (permalink / raw)
  To: 'Mike Detwiler', poky@pokylinux.org

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?

Thanks,
-- Dexuan

------------------------------------------------------------------------

diff --git a/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb b/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
index b853ffc..3acb3ec 100644
--- a/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
+++ b/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
@@ -4,7 +4,7 @@

 DESCRIPTON = "Gnome Mobile And Embedded Software Development Kit for OpenedHand Poky"
 LICENSE = "MIT"
-PR = "r8"
+PR = "r9"

 ALLOW_EMPTY = "1"

diff --git a/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb b/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
index 005d33b..70f5040 100644
--- a/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
+++ b/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
@@ -4,7 +4,7 @@

 DESCRIPTON = "Gnome Mobile And Embedded Software Development Kit for OpenedHand Poky"
 LICENSE = "MIT"
-PR = "r11"
+PR = "r12"

 ALLOW_EMPTY = "1"

diff --git a/meta/recipes-gnome/tasks/task-sdk-gmae.inc b/meta/recipes-gnome/tasks/task-sdk-gmae.inc
index 11505ce..32ad49c 100644
--- a/meta/recipes-gnome/tasks/task-sdk-gmae.inc
+++ b/meta/recipes-gnome/tasks/task-sdk-gmae.inc
@@ -12,6 +12,7 @@ SDK-GMAE = " \
     libebook-dev \
     libxi-dev \
     libsqlite3-dev \
+    gmp-dev \
     "

 # TODO: gvfs-dev, mission-control

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Extending meta-toolchain-sdk
  2010-11-03  1:36 ` Cui, Dexuan
@ 2010-11-03  3:47   ` Saul Wold
  2010-11-03 14:47     ` Mike Detwiler
  0 siblings, 1 reply; 5+ messages in thread
From: Saul Wold @ 2010-11-03  3:47 UTC (permalink / raw)
  To: Cui, Dexuan; +Cc: poky@pokylinux.org

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?
>
Mike, Dexuan:

A better way to do this is to define SDK-EXTRAs in the local.conf file:

SDK-EXTRAS += "libgmp"

That should do the trick.

Sau!


> Thanks,
> -- Dexuan
>
> ------------------------------------------------------------------------
>
> diff --git a/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb b/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
> index b853ffc..3acb3ec 100644
> --- a/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
> +++ b/meta/recipes-gnome/tasks/task-poky-sdk-gmae.bb
> @@ -4,7 +4,7 @@
>
>   DESCRIPTON = "Gnome Mobile And Embedded Software Development Kit for OpenedHand Poky"
>   LICENSE = "MIT"
> -PR = "r8"
> +PR = "r9"
>
>   ALLOW_EMPTY = "1"
>
> diff --git a/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb b/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
> index 005d33b..70f5040 100644
> --- a/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
> +++ b/meta/recipes-gnome/tasks/task-poky-standalone-gmae-sdk-target.bb
> @@ -4,7 +4,7 @@
>
>   DESCRIPTON = "Gnome Mobile And Embedded Software Development Kit for OpenedHand Poky"
>   LICENSE = "MIT"
> -PR = "r11"
> +PR = "r12"
>
>   ALLOW_EMPTY = "1"
>
> diff --git a/meta/recipes-gnome/tasks/task-sdk-gmae.inc b/meta/recipes-gnome/tasks/task-sdk-gmae.inc
> index 11505ce..32ad49c 100644
> --- a/meta/recipes-gnome/tasks/task-sdk-gmae.inc
> +++ b/meta/recipes-gnome/tasks/task-sdk-gmae.inc
> @@ -12,6 +12,7 @@ SDK-GMAE = " \
>       libebook-dev \
>       libxi-dev \
>       libsqlite3-dev \
> +    gmp-dev \
>       "
>
>   # TODO: gvfs-dev, mission-control
> _______________________________________________
> poky mailing list
> poky@pokylinux.org
> https://lists.pokylinux.org/listinfo/poky
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Extending meta-toolchain-sdk
  2010-11-03  3:47   ` Saul Wold
@ 2010-11-03 14:47     ` Mike Detwiler
  2010-11-04  0:28       ` Cui, Dexuan
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Detwiler @ 2010-11-03 14:47 UTC (permalink / raw)
  To: Saul Wold; +Cc: poky@pokylinux.org

On Tue, Nov 2, 2010 at 11:47 PM, Saul Wold <saul.wold@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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Extending meta-toolchain-sdk
  2010-11-03 14:47     ` Mike Detwiler
@ 2010-11-04  0:28       ` Cui, Dexuan
  0 siblings, 0 replies; 5+ messages in thread
From: Cui, Dexuan @ 2010-11-04  0:28 UTC (permalink / raw)
  To: 'Mike Detwiler', Wold, Saul; +Cc: poky@pokylinux.org

Mike Detwiler wrote:
> 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 think we can change the line of task-sdk-gmae.inc to
SDK-EXTRAS ?= ""
This allows the setting of environment variable to be used if a user does set it.
And I think increasing the PR of the related recipe files is also necessary, or else, the change may not actually take effect, unless we build from scratch or do a "bitbake -c clean xxx".

Thanks,
-- Dexuan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-04  0:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-02 20:50 Extending meta-toolchain-sdk Mike Detwiler
2010-11-03  1:36 ` Cui, Dexuan
2010-11-03  3:47   ` Saul Wold
2010-11-03 14:47     ` Mike Detwiler
2010-11-04  0:28       ` Cui, Dexuan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.