[U-Boot] [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden
Simon Glass
sjg at chromium.org
Mon Mar 13 13:24:19 UTC 2017
On 13 March 2017 at 02:49, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
> +CC Richard
> +CC Marek
>
> 2017-03-13 17:43 GMT+09:00 Masahiro Yamada <yamada.masahiro at socionext.com>:
>> 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>
>> ---
>>
>> tools/Makefile | 2 +-
>> tools/env/Makefile | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list