[yocto] Cross Compiled Project

Murilo Travaglia murilo.travaglia at phiinnovations.com
Tue Apr 5 14:36:53 PDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110405/c9aaf3c1/attachment.html>


More information about the yocto mailing list