mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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>
This commit is contained in:
parent
741cdff85d
commit
8a892fd85d
2 changed files with 7 additions and 0 deletions
1
Makefile
1
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; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue