aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-03-26 13:06:18 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2017-03-29 16:13:58 +1100
commit8a892fd85d94c733bbf184ff6df5d0ad5422be12 (patch)
tree38fbd51ccb74ff263bdf670f923700cdb3b7003e /Makefile
parent741cdff85d3e57fbf9e71eac5c6c1140ae39a97b (diff)
downloaddtc-8a892fd85d94c733bbf184ff6df5d0ad5422be12.zip
dtc-8a892fd85d94c733bbf184ff6df5d0ad5422be12.tar.gz
dtc-8a892fd85d94c733bbf184ff6df5d0ad5422be12.tar.bz2
pylibfdt: Allow building to be disabled
Some build systems want to build python libraries separately from the rest of the build. Add a NO_PYTHON option to enable this. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e6d8251..5cf4aee 100644
--- a/Makefile
+++ b/Makefile
@@ -120,6 +120,7 @@ SCRIPTS = dtdiff
# We need both Python and swig to build pylibfdt.
.PHONY: maybe_pylibfdt
maybe_pylibfdt: FORCE
+ if [ -n "${NO_PYTHON}" ]; then exit; fi; \
if $(PKG_CONFIG) --cflags python >/dev/null 2>&1; then \
if which swig >/dev/null 2>&1; then \
can_build=yes; \