[U-Boot] [PATCH] tools: Makefile: improve cross_tools target usability
Marek Vasut
marex at denx.de
Mon Oct 31 14:27:59 CET 2016
On 10/31/2016 02:15 PM, Stefan Müller-Klieser wrote:
> When building the cross_tools target, HOSTCFLAGS and HOSTLDFLAGS will
> propagate to the target build. This should not happen and is easy to
> prevent.
>
> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser at phytec.de>
+CC Masahiro Yamada-san .
> ---
> tools/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/Makefile b/tools/Makefile
> index 400588c..305336c 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -263,6 +263,8 @@ subdir- += env
>
> ifneq ($(CROSS_BUILD_TOOLS),)
> HOSTCC = $(CC)
> +HOSTCFLAGS = $(CFLAGS)
> +HOSTLDFLAGS = $(LDFLAGS)
>
> quiet_cmd_crosstools_strip = STRIP $^
> cmd_crosstools_strip = $(STRIP) $^; touch $@
>
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list