[U-Boot] [PATCH] tools/env: fix cross-compilation
Grant Erickson
marathon96 at gmail.com
Fri Jan 6 00:25:52 CET 2012
On Jan 5, 2012, at 3:18 PM, Mike Frysinger wrote:
> On Thursday 22 December 2011 13:39:35 Grant Erickson wrote:
>> This patch fixes the make infrastructure for the fw_printenv tool such
>> that it is built, by default, as a cross-compilation for the target
>> board when so requested with TOOLSUBDIRS on the U-Boot make command
>> line.
>
> how is this any simpler than the existing method ?
> make tools HOSTCC=some-random-target-gcc
>
> the current tools/ subdir is consistent in its handling. this patch would
> break that.
Mike,
Because it's broken with respect to how the rest of U-Boot is built. I already specify the cross-compiler via CROSS_COMPILE when I build u-boot.bin and u-boot.img, that I need to specify the same compiler in two different ways to build executables for the same target platform is broken and, it sounds like, as are the rest of the tools subdirectories.
If fw_setenv were a build host-based tool or if it made sense as a build host-based tool, then using HOSTCC would be sensible.
Best,
Grant
More information about the U-Boot
mailing list