diff options
author | Simon Glass <sjg@chromium.org> | 2017-03-26 13:06:22 -0600 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-29 16:13:58 +1100 |
commit | 9f2e3a3a1f19b569b9524fa0f4cb4790e23ad983 (patch) | |
tree | e4df5cbfbef5c5e9475ee57c3918456a563b4116 /pylibfdt/Makefile.pylibfdt | |
parent | e91c652af21557698751c3944ceb7c46e5e58164 (diff) | |
download | dtc-9f2e3a3a1f19b569b9524fa0f4cb4790e23ad983.zip dtc-9f2e3a3a1f19b569b9524fa0f4cb4790e23ad983.tar.gz dtc-9f2e3a3a1f19b569b9524fa0f4cb4790e23ad983.tar.bz2 |
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>
Diffstat (limited to 'pylibfdt/Makefile.pylibfdt')
-rw-r--r-- | pylibfdt/Makefile.pylibfdt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt index a0271da..a74cd30 100644 --- a/pylibfdt/Makefile.pylibfdt +++ b/pylibfdt/Makefile.pylibfdt @@ -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)) |