MLK-14636 Tools: Add python lib dependency check for libfdt
authorYe Li <ye.li@nxp.com>
Thu, 6 Apr 2017 09:42:34 +0000 (17:42 +0800)
committerYe Li <ye.li@nxp.com>
Thu, 6 Apr 2017 10:13:06 +0000 (18:13 +0800)
commit636b19ace1205d82947eaa57958cd311e92edcf2
tree019bd13ddeadaa9e9fde4000875ebcb4e0f30ce1
parent89f74eb986c4f7b03ca49d442c8527b18dd87bc4
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>
tools/Makefile