Commit 55be9b36 authored by Tom Rini's avatar Tom Rini

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

Cc: Simon Glass <>
Reported-by: default avatarHeiko Schocher <>
Fixes: 1905c8fc ("build: Always build the libfdt python module")
Signed-off-by: default avatarTom Rini <>
Reviewed-by: default avatarSimon Glass <>
Tested-by: default avatarSimon Glass <>
Tested-by: default avatarHeiko Schocher <>
parent 4943dc2f
......@@ -117,7 +117,8 @@ += $(LIBFDT_OBJS)
tools/ $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c
python $(srctree)/lib/libfdt/ "$(_hostc_flags)" $^
LDFLAGS="$(HOSTLDFLAGS)" python $(srctree)/lib/libfdt/ \
"$(_hostc_flags)" $^
mv $@
tools/libfdt_wrap.c: $(srctree)/lib/libfdt/libfdt.swig
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment