« Return to Thread: [U-Boot] [PATCH 1/4] tools: enable img2srec for "all" target

Re: [U-Boot] [PATCH 4/4] tools/env: use host build flags

by Mike Frysinger :: Rate this Message:

| View in Thread

On Wednesday, November 10, 2010 14:54:17 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > > Mike, what _exactly_ was the reason to drop cross compilation?
> >
> > nothing was "dropped".  you need to set your HOSTCC correctly for the
> > host on which you want tools to compile.
>
> But it is WRONG to use HOSTCC for fw_* - these are _target_ tools, and
> they need to be CROSS compiled.

so do what i said -- set the HOSTCC to the host you want the tools to run on.  
this will work for *all* tools instead of arbitrarily picking some to use
HOSTCC while picking others to use CROSS.

> > this is like arguing that none of the tools in tools/Makefile
> > cross-compile. they do.  i simply fixed tools/env/Makefile to operate
> > the same.
>
> Seems this was not a fix, but introduced an error.  Dp you agree to
> revert that commit?

of course i disagree.  this change is a fix in my mind.
-mike


_______________________________________________
U-Boot mailing list
U-Boot@...
http://lists.denx.de/mailman/listinfo/u-boot

signature.asc (853 bytes) Download Attachment

 « Return to Thread: [U-Boot] [PATCH 1/4] tools: enable img2srec for "all" target