DRAFT opencv_3.%.bbappend: Configure with Python being used

This commit is contained in:
Herb Kuta 2019-05-29 10:21:59 -07:00
parent bf5bf7e0ac
commit 0fdbf7282d
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# Copyright (c) 2019 LG Electronics, Inc.
# Fix up PACKAGECONFIG if Python 2 is being used.
PACKAGECONFIG_prepend = "${@'python2 ' if d.getVar('ROS_PYTHON_VERSION', True) == '2' else ''}"
# _remove happens after _prepend.
PACKAGECONFIG_remove = "${@'python3' if d.getVar('ROS_PYTHON_VERSION', True) == '2' else ''}"