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>
This commit is contained in:
parent
05f6da3fac
commit
03e6151d5b
@ -21,7 +21,7 @@ quiet_cmd_pymod = PYMOD $@
|
|||||||
CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
|
CPPFLAGS="$(HOSTCFLAGS) -I$(LIBFDT_srcdir)" OBJDIR=$(obj) \
|
||||||
SOURCES="$(PYLIBFDT_srcs)" \
|
SOURCES="$(PYLIBFDT_srcs)" \
|
||||||
SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
|
SWIG_OPTS="-I$(LIBFDT_srcdir) -I$(LIBFDT_srcdir)/.." \
|
||||||
$(PYTHON) $< --quiet build_ext --inplace
|
$(PYTHON2) $< --quiet build_ext --inplace
|
||||||
|
|
||||||
$(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
|
$(obj)/_libfdt.so: $(src)/setup.py $(PYLIBFDT_srcs) FORCE
|
||||||
$(call if_changed,pymod)
|
$(call if_changed,pymod)
|
||||||
|
Loading…
Reference in New Issue
Block a user