mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-12 00:47:46 -04:00
pylibfdt: Use Makefile constructs to implement NO_PYTHON
The current mechanism uses a shell construct, but it seems better to use a Makefile approach. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
90db6d9989
commit
896f1c1332
2 changed files with 12 additions and 10 deletions
|
|
@ -25,11 +25,4 @@ install_pylibfdt: $(WRAP) $(PYMODULE)
|
|||
$(call run_setup, $(PYLIBFDT_srcs) $(WRAP), \
|
||||
install $(if $(SETUP_PREFIX),--prefix=$(SETUP_PREFIX)))
|
||||
|
||||
maybe_install_pylibfdt:
|
||||
if [ -e $(PYMODULE) ]; then \
|
||||
if [ -z "$(NO_PYTHON)" ]; then \
|
||||
$(MAKE) install_pylibfdt; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
PYLIBFDT_cleanfiles = libfdt_wrap.c libfdt.py libfdt.pyc _libfdt.so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue