Skip to content
Snippets Groups Projects
Commit 3b082529 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Tom Rini
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reported-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 433cbfb3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment