tf: disable python support for python3-based ROS

tf supports only python2 thus disable it if we build
python3-based ROS.

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
This commit is contained in:
Dmitry Rozhkov 2017-04-10 14:21:31 +03:00
parent c171488a63
commit 2e90a00cbc
1 changed files with 4 additions and 0 deletions

View File

@ -10,3 +10,7 @@ require geometry.inc
SRC_URI += "file://0001-Fix-stdlib.h-No-such-file-or-directory-errors-in-GCC.patch;striplevel=2"
RDEPENDS_${PN} = "${PYTHON_PN}-numpy"
# This option disables python support in case of python3 flavour of ROS because
# only python2 is supported by tf.
EXTRA_OECMAKE =+ "${@'-DANDROID=ON' if d.getVar('PYTHON_PN', True) == 'python3' else ''}"