[U-Boot] [PATCH] build: Always build the libfdt python module

Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. If swig is present, this will be build
Signed-off-by: Emmanuel Vadot manu@bidouilliste.com --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/Makefile b/tools/Makefile index 5b81dde4b0..a609d05859 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -111,7 +111,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 -hostprogs-$(CONFIG_SPL_OF_PLATDATA) += \ +hostprogs-y += \ $(if $(shell which swig 2> /dev/null),_libfdt.so) _libfdt.so-sharedobjs += $(LIBFDT_OBJS) libfdt:

On Mon, Jan 16, 2017 at 08:07:15AM +0100, Emmanuel Vadot wrote:
Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. If swig is present, this will be build
Signed-off-by: Emmanuel Vadot manu@bidouilliste.com
Applied to u-boot/master, thanks!

On 16 January 2017 at 00:07, Emmanuel Vadot manu@bidouilliste.com wrote:
Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. If swig is present, this will be build
Signed-off-by: Emmanuel Vadot manu@bidouilliste.com
tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
participants (3)
-
Emmanuel Vadot
-
Simon Glass
-
Tom Rini