Sagar,

You may well be correct - sounds like I may need to explore the more recent multiarch/xapt developments a bit.   It is encouraging because there's definitely a need for an easy-to-use process between compiling on the gumstix itself and using full-up Yocto.  

Regards,
Greg




From: Sagar Behere <sagar.behere@gmail.com>
To: gumstix-users@lists.sourceforge.net
Sent: Monday, August 26, 2013 11:50 AM
Subject: Re: [Gumstix-users] gumstix yocto crosscompile toolchain ?

On 08/26/2013 08:35 PM, Greg Kogut wrote:
> Kris,
>
> It is not difficult to compile and link for the ARM Cortex with gcc.  In
> Ubuntu the package 'gcc-arm-linux-gnueabi' will get you gcc capable of
> producing code that runs on gumstix - you just have to select the right
> options for '-mcpu'  in your Makefile depending on which gumstix you
> have, etc.
>
> However, beware.  You'll quickly run into problems of having to compile
> libc and other dependent libraries for even the most trivial C programs,
> and effectively setting up your own target file system.  Let's not even
> talk about complex dependencies.    Be careful what you wish for before
> going down this route.

Greg: Your advice is valid, but...

With the coming of multiarch and tools like xapt, don't you think things
are becoming really easy? For example, the other day I had to
cross-compile a fairly complex piece of software which depended on
multiple other libraries which in turn depended on other libraries and
so on.. In debian wheezy, you simply do, for example

xapt -a armel -m <big bunch of libs>

et voilą! everything and its dependencies are pulled in automagically,
installed in a location the armel cross-compiler knows about, and the
cross-compile 'just works'. [ Okay, I'm lying about the 'just works' but
it's pretty close..]

In my opinion (feel free to correct me, because I may have misunderstood
this) Yocto is good when you need to make a customized linux
distribution for your specific gadget. For tinkering and prototyping,
using systems like debian, multiarch etc. are good enough and moreover
you don't have to maintain all sources on your own build machine,
instead you can use the repositories and their updates and fixes.

/Sagar

> Another might be to try buildroot, a barebones crosscompiling system:
http://wiki.gumstix.org/index.php?title=Category:How_to_-_Buildroot_overo
>
> And yet another option is to build on the gumstix itself:
http://gumstix.org/compile-code-on-my-gumstix.html
>
> I feel your pain with respect to OE/Yocto/bitake, but I find that once
> you invest the time to navigate the learning curve it grows on you sort
> of like a friendly fungus.
>
> Regards,
> Greg
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> *From:* kris duff <t_dufff@yahoo.ca>
> *To:* General mailing list for gumstix users.
> <gumstix-users@lists.sourceforge.net>
> *Sent:* Monday, August 26, 2013 10:54 AM
> *Subject:* [Gumstix-users] gumstix yocto crosscompile toolchain ?
>
> Hello,
>
> My target is overo, I would like to crosscompile my software to the
> gumstix.  I never been successfull with bitbake so I would like to use
> gcc to crosscompile my code.
>
> I know it is possible, but I would need help to know where to get the
> toolchain and what to modify in my makefile to crosscompile ?
>
> Thank you
>
> Kris
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> <mailto:gumstix-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users