All of lore.kernel.org
 help / color / mirror / Atom feed
* Building sysroot for SDK
@ 2012-02-14  8:46 Patrick
  2012-02-14  9:29 ` Lu, Lianhao
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick @ 2012-02-14  8:46 UTC (permalink / raw)
  To: poky@yoctoproject.org

Dear list,

I use poky 6.0 to build a complete rootfs for my own target, it's working nicely !Now I would like to build a small application SDK for my system. 

I have red carefully the ADT manual and decided to build a toolchain with meta-toolchain. The toolchain generated works properly but some libraries and headers are missing. 
For example my target use SQLite built in the rootfs. The sqlite library and the headers files are missing in the toolchain.

I would like to know how to build the sysroot to add those files in the toolchain or how to add it directly to the toolchain.

Thanks in advance for any help

Patrick



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

* Re: Building sysroot for SDK
  2012-02-14  8:46 Building sysroot for SDK Patrick
@ 2012-02-14  9:29 ` Lu, Lianhao
  2012-02-14 10:01   ` Re : " Patrick
  0 siblings, 1 reply; 5+ messages in thread
From: Lu, Lianhao @ 2012-02-14  9:29 UTC (permalink / raw)
  To: Patrick, poky@yoctoproject.org


Patrick wrote on 2012-02-14:
> Dear list,
> 
> I use poky 6.0 to build a complete rootfs for my own target, it's
> working nicely !Now I would like to build a small application SDK for my
> system.
> 
> I have red carefully the ADT manual and decided to build a toolchain with meta-toolchain. The toolchain generated works properly but some
> libraries and headers are missing.
> For example my target use SQLite built in the rootfs. The sqlite library and the headers files are missing in the toolchain.
> 
> I would like to know how to build the sysroot to add those files in the toolchain or how to add it directly to the toolchain.
> 
Hi Patrick,

If you want to add more packages into the sysroot built by meta-toolchain, you may add your extra packages(i.e. libsqlite3-dev) into the variable "TOOLCHAIN_TARGET_TASK".  Meta/recipes-core/meta/meta-toolchain-gmae.bb might be an example of how to add more packages into the target sysroot.

Best Regards,
Lianhao




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

* Re : Building sysroot for SDK
  2012-02-14  9:29 ` Lu, Lianhao
@ 2012-02-14 10:01   ` Patrick
  2012-02-14 10:12     ` Re : " Patrick
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick @ 2012-02-14 10:01 UTC (permalink / raw)
  To: Lu, Lianhao, poky@yoctoproject.org




>Patrick wrote on 2012-02-14:
>> Dear list,
>> 
>> I use poky 6.0 to build a complete rootfs for my own target, it's
>> working nicely !Now I would like to build a small application SDK for my
>> system.
>> 
>>
 I have red carefully the ADT manual and decided to build a toolchain 
with meta-toolchain. The toolchain generated works properly but some
>> libraries and headers are missing.
>>
 For example my target use SQLite built in the rootfs. The sqlite 
library and the headers files are missing in the toolchain.
>> 
>>
 I would like to know how to build the sysroot to add those files in the
 toolchain or how to add it directly to the toolchain.
>> 
>Hi Patrick,
>
>If
 you want to add more packages into the sysroot built by meta-toolchain,
 you may add your extra packages(i.e. libsqlite3-dev) into the variable 
"TOOLCHAIN_TARGET_TASK".  
>Meta/recipes-core/meta/meta-toolchain-gmae.bb might be an example of
 how to add more packages into the target sysroot.
>
>Best Regards,
>Lianhao
>

Hi Lianhao,

Thanks for your help ! I have created my own meta-toolchain based on meta-toolchain-gmae.bb and it's work nicely.
However, there remains a small problem. My own meta-toolchain-perso.bb file is stored in my own layer meta-perso.
To include the meta-toolchain.bb with require I need to use the full 
path to the meta layer: require 
../../../meta/recipes-core/meta/meta-toolchain.bb
This is not really clean, do you know how to point the meta-toolchain.bb file without using the full path ?

Thanks again for your help

Patrick


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

* Re : Re : Building sysroot for SDK
  2012-02-14 10:01   ` Re : " Patrick
@ 2012-02-14 10:12     ` Patrick
  2012-02-16 14:13       ` David Nyström
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick @ 2012-02-14 10:12 UTC (permalink / raw)
  To: Lu, Lianhao, poky@yoctoproject.org



>> 
>>Hi Patrick,
>>
>>If you want to add more packages into the sysroot built by meta-toolchain, you may add your extra packages(i.e. libsqlite3-dev) into the variable "TOOLCHAIN_TARGET_TASK".  
>>Meta/recipes-core/meta/meta-toolchain-gmae.bb might be an example of how to add more packages into the target sysroot.
>>
>>Best Regards,
>>Lianhao
>>
>
>Hi Lianhao,
>
>Thanks for your help ! I have created my own meta-toolchain based on meta-toolchain-gmae.bb and it's work nicely.
>However, there remains a small problem. My own meta-toolchain-perso.bb file is stored in my own layer meta-perso.
>To include the meta-toolchain.bb with require I need to use the full path to the meta layer: require ../../../meta/recipes-core/meta/meta-toolchain.bb
>This is not really clean, do you know how to point the meta-toolchain.bb file without using the full path ?
>
>Thanks again for your help
>
>Patrick

I answer myself to my question:
I used a meta-toolchain.bbappend file placed in my own layer. This file append the libqlite3-dev package to the TOOLCHAIN_TARGET_TASK. 
This works fine !

Patrick



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

* Re: Re : Re : Building sysroot for SDK
  2012-02-14 10:12     ` Re : " Patrick
@ 2012-02-16 14:13       ` David Nyström
  0 siblings, 0 replies; 5+ messages in thread
From: David Nyström @ 2012-02-16 14:13 UTC (permalink / raw)
  To: poky

On 02/14/2012 11:12 AM, Patrick wrote:
>
>>> Hi Patrick,
>>>
>>> If you want to add more packages into the sysroot built by meta-toolchain, you may add your extra packages(i.e. libsqlite3-dev) into the variable "TOOLCHAIN_TARGET_TASK". 
>>> Meta/recipes-core/meta/meta-toolchain-gmae.bb might be an example of how to add more packages into the target sysroot.
>>>
>>> Best Regards,
>>> Lianhao
>>>
>> Hi Lianhao,
>>
>> Thanks for your help ! I have created my own meta-toolchain based on meta-toolchain-gmae.bb and it's work nicely.
>> However, there remains a small problem. My own meta-toolchain-perso.bb file is stored in my own layer meta-perso.
>> To include the meta-toolchain.bb with require I need to use the full path to the meta layer: require ../../../meta/recipes-core/meta/meta-toolchain.bb
>> This is not really clean, do you know how to point the meta-toolchain.bb file without using the full path ?
>>
>> Thanks again for your help
>>
>> Patrick
> I answer myself to my question:
> I used a meta-toolchain.bbappend file placed in my own layer. This file append the libqlite3-dev package to the TOOLCHAIN_TARGET_TASK.
> This works fine !
>
> Patrick
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
Hi,

Should you not also be able to use your favourite package manager 
included in the toolchain tarball for this ?
opkg-cl -f /opt/poky/1.1/sysroots/ppce500mc-enea-linux/etc/opkg.conf 
--offline-root /opt/poky/1.1/sysroots/ppce500mc-enea-linux/ update
opkg-cl -f /opt/poky/1.1/sysroots/ppce500mc-enea-linux/etc/opkg.conf 
--offline-root /opt/poky/1.1/sysroots/ppce500mc-enea-linux/ install 
libsqlite3-dev




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

end of thread, other threads:[~2012-02-16 14:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14  8:46 Building sysroot for SDK Patrick
2012-02-14  9:29 ` Lu, Lianhao
2012-02-14 10:01   ` Re : " Patrick
2012-02-14 10:12     ` Re : " Patrick
2012-02-16 14:13       ` David Nyström

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.