Commit 03e6151d5bb42fd055e9c1e571440359bd5b5282

Authored by Josef Lusticky
Committed by Tom Rini
1 parent 05f6da3fac

pylibfdt: Use Python 2 in Makefile

pylibfdt needs Python 2 to build.
Replace $(PYTHON) with $(PYTHON2) in pylibfdt Makefile
to ensure Python 2 is used to build it.

This fixes build on systems where Python 3 is the default version
of the "python" interpreter.
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/dtc/pylibfdt/Makefile
... ... @@ -21,7 +21,7 @@
21 21 CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
22 22 SOURCES="$(PYLIBFDT_srcs)" \
23 23 SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
24   - $(PYTHON) $< --quiet build_ext --inplace
  24 + $(PYTHON2) $< --quiet build_ext --inplace
25 25  
26 26 $(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
27 27 $(call if_changed,pymod)