From: Simon Glass Date: Mon, 4 Jul 2016 17:58:12 +0000 (-0600) Subject: Only build the libfdt python module if 'swig' is available X-Git-Tag: v2016.09-rc1~82^2~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=162a7a421718a2d15716a78ffb7abb1d94f6b03a;p=u-boot 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 --- diff --git a/tools/Makefile b/tools/Makefile index 2731b7ac9f..421414bc15 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: