diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-04 11:58:12 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-14 20:40:24 -0600 |
commit | 162a7a421718a2d15716a78ffb7abb1d94f6b03a (patch) | |
tree | 0e717d77aa064183bcbf510299624ab9d32531b3 /tools/Makefile | |
parent | 76bce10d2131938fcd5b1bbb0479cdb66daffa29 (diff) | |
download | u-boot-imx-162a7a421718a2d15716a78ffb7abb1d94f6b03a.zip u-boot-imx-162a7a421718a2d15716a78ffb7abb1d94f6b03a.tar.gz u-boot-imx-162a7a421718a2d15716a78ffb7abb1d94f6b03a.tar.bz2 |
Only build the libfdt python module if 'swig' is available
When swig is not available, we can still build correctly. So make this
optional. Add a comment about how to enable this build.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile index 2731b7a..421414b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -107,7 +107,10 @@ mkimage-objs := $(dumpimage-mkimage-objs) mkimage.o fit_info-objs := $(dumpimage-mkimage-objs) fit_info.o fit_check_sign-objs := $(dumpimage-mkimage-objs) fit_check_sign.o -hostprogs-$(CONFIG_SPL_OF_PLATDATA) += _libfdt.so +# Build a libfdt Python module if swig is available +# Use 'sudo apt-get install swig libpython-dev' to enable this +hostprogs-$(CONFIG_SPL_OF_PLATDATA) += \ + $(if $(shell which swig),_libfdt.so) _libfdt.so-sharedobjs += $(LIBFDT_OBJS) libfdt: |