diff options
author | Ye Li <ye.li@nxp.com> | 2017-04-06 17:42:34 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-06 18:13:06 +0800 |
commit | 636b19ace1205d82947eaa57958cd311e92edcf2 (patch) | |
tree | 019bd13ddeadaa9e9fde4000875ebcb4e0f30ce1 | |
parent | 89f74eb986c4f7b03ca49d442c8527b18dd87bc4 (diff) | |
download | u-boot-imx-636b19ace1205d82947eaa57958cd311e92edcf2.zip u-boot-imx-636b19ace1205d82947eaa57958cd311e92edcf2.tar.gz u-boot-imx-636b19ace1205d82947eaa57958cd311e92edcf2.tar.bz2 |
MLK-14636 Tools: Add python lib dependency check for libfdt
The tools/makefile will build a libfdt Python module if swig is available.
But actually it not only need swig but also need python libary. We will get
build break below when python is not installed. It is better to add more
check for python lib.
Because applications may install some python libs, but not the full libpython-dev,
then the Python.h is missed. We check Python.h to instead checking libs.
tools/libfdt_wrap.c:147:21: fatal error: Python.h: No such file or directory
Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r-- | tools/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/Makefile b/tools/Makefile index 1c840d7..c1e46bb 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -115,7 +115,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-y += \ - $(if $(shell which swig 2> /dev/null),_libfdt.so) + $(if $(shell which swig 2> /dev/null), $(if $(wildcard /usr/include/python*/Python.h),_libfdt.so)) _libfdt.so-sharedobjs += $(LIBFDT_OBJS) libfdt: |