]> git.sur5r.net Git - u-boot/commit
tools: fix cross-compiling tools when HOSTCC is overridden
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Mar 2017 08:43:16 +0000 (17:43 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 15 Mar 2017 00:40:22 +0000 (20:40 -0400)
commit3b0825296aeba69c2cbfd3e179db2e9cbe5e70d7
tree123dc8add6316cfcc1f5d4cb28efeda09a7ceb19
parent433cbfb3b37404d6150a1aba94309bc0ed661689
tools: fix cross-compiling tools when HOSTCC is overridden

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@socionext.com>
Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/Makefile
tools/env/Makefile