aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2018-05-18 09:56:53 +0200
committerTom Rini <trini@konsulko.com>2018-05-23 22:06:41 -0400
commitf919fbd350bf6f782ab5ceba5b28fc5ad6d9c595 (patch)
treea53784aa4fb3ffed96d3431b41932c3e4491a5ef
parent02c3a3d09ef86dd7da574b8725c0ea49dda9d277 (diff)
downloadu-boot-f919fbd350bf6f782ab5ceba5b28fc5ad6d9c595.zip
u-boot-f919fbd350bf6f782ab5ceba5b28fc5ad6d9c595.tar.gz
u-boot-f919fbd350bf6f782ab5ceba5b28fc5ad6d9c595.tar.bz2
pylibfdt: Add missing CC and LD to Makefile
Add missing CC and LDSHARED variables to the Makefile to pass the correct C compiler and linker path to the build of _libfdt.so . Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--scripts/dtc/pylibfdt/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/dtc/pylibfdt/Makefile b/scripts/dtc/pylibfdt/Makefile
index 01d5e0f..c769d7d 100644
--- a/scripts/dtc/pylibfdt/Makefile
+++ b/scripts/dtc/pylibfdt/Makefile
@@ -14,7 +14,8 @@ PYLIBFDT_srcs = $(addprefix $(LIBFDT_srcdir)/,$(LIBFDT_SRCS)) \
$(obj)/libfdt.i
quiet_cmd_pymod = PYMOD $@
- cmd_pymod = unset CC; unset CROSS_COMPILE; unset CFLAGS;\
+ cmd_pymod = unset CROSS_COMPILE; unset CFLAGS; \
+ CC="$(HOSTCC)" LDSHARED="$(HOSTCC) -shared " \
LDFLAGS="$(HOSTLDFLAGS)" \
VERSION="u-boot-$(UBOOTVERSION)" \
CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \