[PATCH] Morph cross-compile parallel job support

Paul Sherwood paul.sherwood at codethink.co.uk
Tue Mar 14 16:41:56 GMT 2017


Hi Justin
On 2017-03-14 16:06, Justin Erenkrantz wrote:
> I have a project where I wanted to bootstrap a new architecture.  I
> took a look at the latest docs and got all confused around the
> morph/ybd/buildstream conversations.  It appears that some of the
> documentation is out of date.  =(

Yes, sorry about that. We need to tidy things up - I'll take your email 
as a prod to encourage it to happen now.

> That said, it looks like Morph is currently the only tool that can do
> cross-compiles to a new architecture.  So, I have a series of patches
> that I used with morph and the definitions and would like to see if it
> makes sense to merge them upstream.

As a matter of interest did you try this with ybd at all?

> First off, the target architecture has lots of cores...so, for the
> native stage2 cross step, it makes sense to allow parallelization to
> occur rather than hardcode to -j1.
> 
> This patch works for me(tm).

:)

> I have other patches for definitions to allow a cross-compile to
> complete that I'll post separately.  And, then, finally some WIPs
> around the architecture enhancements as it needs new versions of
> binutils/gcc/etc/etc...which is where things start to go off the
> rails.  =(

Ack.

> Cheers.  -- justin
> 
> P.S. BTW, any thoughts around moving morph over to gitlab?  It'd make
> this process a bit easier!

It's a good idea. Definitions are already in gitlab as you know.

I've kicked off an import at https://gitlab.com/baserock/morph/import

Thanks for the patch, and the feedback!

Paul




More information about the baserock-dev mailing list