[yocto] Cross Compiled Project

Murilo Travaglia murilo.travaglia at phiinnovations.com
Thu Apr 7 07:36:10 PDT 2011


Thanks for the help Jessica!

Now I'm able to do a cross compile project with own toochain and root
filesystem.


Regards,

On Tue, Apr 5, 2011 at 6:45 PM, Zhang, Jessica <jessica.zhang at intel.com>wrote:

>  For the Eclipse IDE, if you to to preference->Yocto SDK, there's "Sysroot
> Location:", there specify the directory that you want to use as your sysroot
> that contains your target dev libs and headers.  For the example that I use,
> I'd specify /home/jzhang/qemu-arm there...the
> environment-setup-armv5te-poky-linux file will be used by the IDE but mainly
> for the path part to locat the cross toolchain...
>
>  ------------------------------
> *From:* Murilo Travaglia [mailto:murilo.travaglia at phiinnovations.com]
> *Sent:* Tuesday, April 05, 2011 2:37 PM
> *To:* Zhang, Jessica
> *Cc:* yocto at yoctoproject.org
> *Subject:* Re: [yocto] Cross Compiled Project
>
> Hello Jessica,
>
> I'm using Eclipse IDE plugin. This field called sysroot is in the file
> environment-setup-my-toolchain?
>
> In this file I can the variables:
>
> PKG_CONFIG_SYSROOT_DIR
> POKY_NATIVE_SYSROOT
> POKY_TARGET_SYSROOT
>
> Thanks for the prompt reply! =]
>
> Regards,
>
> On Tue, Apr 5, 2011 at 6:26 PM, Zhang, Jessica <jessica.zhang at intel.com>wrote:
>
>>  There're 2 main parts for cross development, at least if you want to use
>> Yocto ADT setup, one is the cross toolchain, the other is the sysroot, which
>> contains target development library and headers.  For Yocto sample settings,
>> we use qemu rootfs to setup the sysroot.  For your case (arm) when you
>> bitbake poky-image-sato-sdk, it'll generate a file called
>> yocto-image-sato-sdk-qemuarm-1.0.rootfs.tar.bz2, and by using
>> poky-extract-sdk script to extract that file under a specified directory,
>> e.g. $HOME/qemu-arm.  Then for your case, you need to create the sysroot
>> directory that contains the target libs and pass that in through --sysroot
>> option.  If you're using our Eclipse IDE plug-in, there's field called
>> sysroot that you must setup...
>>
>> Thanks,
>> Jessica
>>
>>  ------------------------------
>> *From:* yocto-bounces at yoctoproject.org [mailto:
>> yocto-bounces at yoctoproject.org] *On Behalf Of *Murilo Travaglia
>> *Sent:* Tuesday, April 05, 2011 2:01 PM
>> *To:* yocto at yoctoproject.org
>> *Subject:* [yocto] Cross Compiled Project
>>
>>   Hi all,
>>
>>
>> I'm trying to use my own toolchain to develop and debug my application. I
>> made some changes in the file environment-setup-my-toolchain (file used in
>> SDK Mode to configure the environment) to link the compiler, gdb,etc to my
>> own toolchain. Making a "Reconfigure Project" or "Build Project" I can see
>> that my own toolchain is used.  =]
>>
>> The problem is that I couldn't see where I have to make the modifications
>> to get the specific libraries for the target architecture, e.g: if I'LL
>> develop an application to ARM architecture, where I have to make
>> modifications to use the libs (/lib, usr/lib) of the target architecture
>> (ARM). Is this possible in the Yocto Project?
>>
>> Thanks in advance!
>>
>> Best regards!
>>
>> --
>> Murilo Marques Travaglia
>> Phi Innovations
>>
>>
>>
>>
>
>
> --
> Murilo Marques Travaglia
> Phi Innovations
>
>
>
>


-- 
Murilo Marques Travaglia
Phi Innovations
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110407/4c3a8f30/attachment.html>


More information about the yocto mailing list