Message ID | 1467655123-29441-33-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Delegated to: | Simon Glass |
Headers | show |
On 4 July 2016 at 11:58, Simon Glass <sjg@chromium.org> wrote: > 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> > --- > > Changes in v3: None > Changes in v2: None > > tools/Makefile | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Applied to u-boot-dm
diff --git a/tools/Makefile b/tools/Makefile index a813217..0300e38 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:
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> --- Changes in v3: None Changes in v2: None tools/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)