mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-12 00:47:46 -04:00
pylibfdt: Use the correct libfdt version in the module
Use the same version number in the module as with the rest of libfdt. This
can be examined with:
import pkg_resources
print pkg_resources.require('libfdt')[0].version
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
e91c652af2
commit
9f2e3a3a1f
2 changed files with 4 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so
|
|||
$(PYMODULE): $(PYLIBFDT_srcs) $(WRAP)
|
||||
@$(VECHO) PYMOD $@
|
||||
SOURCES="$^" CPPFLAGS="$(CPPFLAGS)" OBJDIR="$(PYLIBFDT_objdir)" \
|
||||
VERSION="$(dtc_version)" \
|
||||
python $(PYLIBFDT_objdir)/setup.py --quiet build_ext --inplace
|
||||
|
||||
$(WRAP): $(PYLIBFDT_srcdir)/libfdt.swig
|
||||
|
|
@ -17,7 +18,7 @@ $(WRAP): $(PYLIBFDT_srcdir)/libfdt.swig
|
|||
install_pylibfdt: $(WRAP) $(PYMODULE)
|
||||
$(VECHO) INSTALL-PYLIB; \
|
||||
SOURCES="$(PYLIBFDT_srcs) $(WRAP)" CPPFLAGS="$(CPPFLAGS)" \
|
||||
OBJDIR="$(PYLIBFDT_objdir)" \
|
||||
OBJDIR="$(PYLIBFDT_objdir)" VERSION="$(dtc_version)" \
|
||||
python $(PYLIBFDT_objdir)/setup.py --quiet install \
|
||||
$(if $(SETUP_PREFIX),--prefix=$(SETUP_PREFIX))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue