[yocto] Cross Compiled Project

Zhang, Jessica jessica.zhang at intel.com
Tue Apr 5 14:26:36 PDT 2011


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110405/ef8b8834/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 8455 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110405/ef8b8834/attachment.bin>


More information about the yocto mailing list