tools: Correct python building host tools
PATCH 1/1 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.
--- tools/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/Makefile +2 -1
@@ -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
Signature · 1 line
1.9.1
PATCH 1/1 tools: Correct python building host tools
Quoted 27 lines · 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 <[email protected]>Reported-by Heiko Schocher <[email protected]>Fixes 1905c8fc711a ("build: Always build the libfdt python module")Signed-off-by Tom Rini <[email protected]>--- tools/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tools/Makefile +2
-2@@ -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 --
Quoted 2 lines
1.9.1
Tested on 5 PowerPC builds:
Thanks Tom!
- Simon
PATCH 1/1 tools: Correct python building host tools
In reply to Tom RiniHello Tom,
Am 23.01.2017 um 17:44 schrieb Tom Rini:
Quoted 11 lines
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 <[email protected]>Reported-by Heiko Schocher <[email protected]>Fixes 1905c8fc711a ("build: Always build the libfdt python module")Signed-off-by Tom Rini <[email protected]>--- tools/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks! This fixes the build for the tqm5200 board.
bye,
Heiko
Quoted 16 lines
tools/Makefile +2
-1@@ -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
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Quoted 11 lines · 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 <[email protected]>Reported-by Heiko Schocher <[email protected]>Fixes 1905c8fc711a ("build: Always build the libfdt python module")Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>Tested-by Simon Glass <[email protected]>Tested-by Heiko Schocher <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170124/ddf1c485/attachment.sig>