[PATCH 1/3] mock cvs 2007-03: cross-compile support

Michael E Brown Michael_E_Brown at dell.com
Wed Jun 13 16:54:22 UTC 2007


On Wed, Jun 13, 2007 at 11:40:42AM -0500, Ken MacLeod wrote:
> Thanks for the excellent review, I'll rebase and implement the changes
> in my next coding session.  
> 
> Michael E Brown <Michael_E_Brown at dell.com> writes:
> 
> > On Tue, Jun 12, 2007 at 09:15:13PM -0500, Ken MacLeod wrote:
> 
> > Can you give an overview for the ignorant (ie. me) about the
> > difference between /cross and /target? Why is /cross its own
> > chroot-like thing?  Couldnt you just say, "install this one
> > additional cross-buildsys-rpm, which pulls in the cross-toolchain?"
> 
> I agree that that's the way it should work.  You've got it right that
> the /cross tools are essentially part of the host environment, so the
> difference to /target is that target is the chroot for holding the
> target libraries and headers.
> 
> Most cross-development toolkits assume their cross-tools install into
> a dedicated root and they don't do any renaming so they'd be replacing
> the equivalent host tools.  A few do install themselves cleanly into
> /opt so I'll be able to test those without a cross root.  RTEMS is
> built to install with RPM directly into the host filesystem under
> /opt, where MontaVista cross RPMs install under /opt but (I think)
> aren't set up to be in the host RPM db.
> 
> When there's a good reference example for installing into the host
> filesystem (maybe RTEMS or MV) we can provide guidance for other
> distributions.

Ok, thanks. Sounds reasonable to add, as long as we document that the
correct way to do it is /opt, but we are providing /cross as a
backwards-compatible method while people migrate over.

If you address my code review comments, and I get a consensus from
Clark, these patches can go in.

There was a comment last night on IRC that the patches dont apply
cleanly and that maybe you missed sending a patch set or something.
Please base off latest git tree, master branch when resending. You used
git-format-patch to send it, which is good. Please continue to do that.
--
Michael




More information about the buildsys mailing list