[U-Boot] tools: fix cross-compiling tools when HOSTCC is overridden

Tom Rini trini at konsulko.com
Thu Mar 16 20:41:11 UTC 2017


On Mon, Mar 13, 2017 at 05:43:16PM +0900, Masahiro Yamada wrote:

> Richard reported U-Boot tools issues in OpenEmbedded/Yocto project.
> 
> OE needs to be able to change the default compiler. If we pass in
> HOSTCC through the make command, it overwrites all HOSTCC instances,
> including ones in tools/Makefile and tools/env/Makefile, which breaks
> "make cross_tools" and "make env", respectively.
> 
> Add "override" directives to avoid overriding HOSTCC instances that
> really need to point to the cross-compiler.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> Reported-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170316/7957f694/attachment.sig>


More information about the U-Boot mailing list