From: Tom Rini Date: Mon, 23 Jan 2017 16:44:33 +0000 (-0500) Subject: tools: Correct python building host tools X-Git-Tag: v2017.03-rc1~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55be9b36bd8be4de3d806f8827222c514fc28930;p=u-boot tools: Correct python building host tools 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 Reported-by: Heiko Schocher Fixes: 1905c8fc711a ("build: Always build the libfdt python module") Signed-off-by: Tom Rini Reviewed-by: Simon Glass Tested-by: Simon Glass Tested-by: Heiko Schocher --- diff --git a/tools/Makefile b/tools/Makefile index a609d05859..cefcedf683 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