[cfe-dev] Using clang for cross-compiling to Cortex M4

Rick Mann rmann at latencyzero.com
Tue Jun 3 13:40:26 PDT 2014


On Jun 3, 2014, at 13:38 , James Gregurich <bayoubengal at mac.com> wrote:

> I don’t know if that will be practical. this stuff requires a lot of hand-jiggering to get it right. But, It will be a learning exercise!  :)

Well, any steps I can issue on the command line should be translatable into a recipe.

> What you COULD do that would be maintainable is to get Yocto working on OSX. Yocto is a package manager made for cross-compiling for embedded projects. The problem with it is the host-recipes aren’t OSX-friendly. They are all linux-specific. Yocto itself can be made to run  on OSX with a few minor patches and putting certain gnu tools place of OSX tools (sed comes to mind). Once you have that Yocto would be able to drive your toolchain the same way it does on Linux. 
> 
> The only other major complication to using OSX to cross compile for linux is the tendency by linux folk to make use of case-sensitivity in their filesystems. You have to put their stuff on special volumes and even then the Finder doesn’t entire work correctly with the files.

Why? Why would anyone do that?



-- 
Rick







More information about the cfe-dev mailing list