aboutsummaryrefslogtreecommitdiff
path: root/pylibfdt
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-08-10 13:52:33 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2018-09-25 10:30:28 +1000
commit7691f9d39301aaf411437ee991583559f962ac03 (patch)
treefe64731f615c71485b061c91bf2c99d0b808b62b /pylibfdt
parent855b9963def9cccf1cd6a74a8bb784c44ce497f7 (diff)
downloaddtc-7691f9d39301aaf411437ee991583559f962ac03.zip
dtc-7691f9d39301aaf411437ee991583559f962ac03.tar.gz
dtc-7691f9d39301aaf411437ee991583559f962ac03.tar.bz2
pylibfdt: Make SETUP make variable
This points to the Python setup script, since we reference it in a couple of places. While we're there correct two small problems: 1) setup.py is part of the checked in sources and so lives in $(PYLIBFDT_srcdir) not $(PYLIBFDT_objdir) [this only worked because those are the same by default] 2) The module itself should depend on the setup script so it is rebuilt if the script is changed Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'pylibfdt')
-rw-r--r--pylibfdt/Makefile.pylibfdt6
1 files changed, 4 insertions, 2 deletions
diff --git a/pylibfdt/Makefile.pylibfdt b/pylibfdt/Makefile.pylibfdt
index 3c6ae44..bbd6518 100644
--- a/pylibfdt/Makefile.pylibfdt
+++ b/pylibfdt/Makefile.pylibfdt
@@ -4,12 +4,14 @@
PYLIBFDT_srcs = $(PYLIBFDT_srcdir)/libfdt.i
PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so
+SETUP = $(PYLIBFDT_srcdir)/setup.py
+
define run_setup
VERSION="$(dtc_version)"
- $(PYLIBFDT_objdir)/setup.py --quiet $(1)
+ $(SETUP) --quiet $(1)
endef
-$(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive)
+$(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP)
@$(VECHO) PYMOD $@
$(call run_setup, build_ext --build-lib=$(PYLIBFDT_objdir))