[U-Boot] [PATCH] tools: Correct python building host tools

Heiko Schocher hs at denx.de
Tue Jan 24 07:06:42 CET 2017


Hello Tom,

Am 23.01.2017 um 17:44 schrieb Tom Rini:
> When we have python building tools for the host it will not check HOSTXX
> variables but only XX variables, for example LDFLAGS and not
> HOSTLDFLAGS.
>
> Cc: Simon Glass <sjg at chromium.org>
> Reported-by: Heiko Schocher <hs at denx.de>
> Fixes: 1905c8fc711a ("build: Always build the libfdt python module")
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>   tools/Makefile | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)

Thanks! This fixes the build for the tqm5200 board.

Tested-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
>
> diff --git a/tools/Makefile b/tools/Makefile
> index a609d058595b..cefcedf683ca 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -117,7 +117,8 @@ _libfdt.so-sharedobjs += $(LIBFDT_OBJS)
>   libfdt:
>
>   tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c
> -	python $(srctree)/lib/libfdt/setup.py "$(_hostc_flags)" $^
> +	LDFLAGS="$(HOSTLDFLAGS)" python $(srctree)/lib/libfdt/setup.py \
> +		"$(_hostc_flags)" $^
>   	mv _libfdt.so $@
>
>   tools/libfdt_wrap.c: $(srctree)/lib/libfdt/libfdt.swig
>

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list