[U-Boot] [PATCH 1/1] tools: conditionally disable python libfdt wrapper
Matt Weber
matthew.weber at rockwellcollins.com
Tue May 2 03:43:33 UTC 2017
Not all host systems want the default swig to be
used when building the tools. Allow for the
disabling of the wrapper to enable cross-compiling
of the tools on a host system with swig.
Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
---
I'm open for suggestions on what updates to make to
enable the wrapper building to use prefix/destdir that
point python/swig in the right place to the sysroot/host
tools/libs for building of the tools.
Example build failure when buildroot is trying to build
target/host uboot-tools and the host systems OS is detecting swig.
The intention would be the buildroot built host python/swig
should be used for the detect and as the tools assisting in the
build.
http://autobuild.buildroot.net/results/6d5/6d52ac8bb71012aea6fc4c679691b31a3366728b/build-end.log
---
tools/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/Makefile b/tools/Makefile
index 2fc4a58..7f6c29d 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -114,6 +114,7 @@ fit_check_sign-objs := $(dumpimage-mkimage-objs) fit_check_sign.o
# Build a libfdt Python module if swig is available
# Use 'sudo apt-get install swig libpython-dev' to enable this
+ifndef CONFIG_TOOLS_PYTHON_WRAPPER_DISABLE
hostprogs-y += \
$(if $(shell which swig 2> /dev/null),_libfdt.so)
_libfdt.so-sharedobjs += $(LIBFDT_OBJS)
@@ -126,6 +127,7 @@ tools/_libfdt.so: $(patsubst %.o,%.c,$(LIBFDT_OBJS)) tools/libfdt_wrap.c
tools/libfdt_wrap.c: $(srctree)/lib/libfdt/libfdt.swig
swig -python -o $@ $<
+endif
# TODO(sjg at chromium.org): Is this correct on Mac OS?
--
1.9.1
More information about the U-Boot
mailing list