DRAFT ros_component.bbclass: Move ROS_BPN, ROS_SPN, ROS_SP into here from other bbclass-s

This commit is contained in:
Herb Kuta 2019-03-25 12:19:03 -07:00
parent 9e3c042d2b
commit f1aae31f66
4 changed files with 5 additions and 10 deletions

View File

@ -1,6 +1,4 @@
# Copyright (c) 2018 LG Electronics, Inc.
ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
# Copyright (c) 2018-2019 LG Electronics, Inc.
S = "${WORKDIR}/git/${ROS_BPN}"

View File

@ -18,8 +18,6 @@ DEPENDS_append = " \
ament-cmake-test-native \
"
ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
S = "${WORKDIR}/git/${ROS_BPN}"
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"

View File

@ -3,11 +3,6 @@
# Copyright (c) 2019 LG Electronics, Inc.
#
ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}"
ROS_SPN ?= "${ROS_BPN}"
ROS_SP = "${ROS_SPN}-${PV}"
export ros_prefix = "${base_prefix}/opt/ros/${ROS_DISTRO}"
export ros_bindir = "${ros_prefix}/bin"

View File

@ -6,6 +6,10 @@ export ROS_DISTRO
export ROS_VERSION
export ROS_PYTHON_VERSION
ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}"
ROS_SPN ?= "${ROS_BPN}"
ROS_SP = "${ROS_SPN}-${PV}"
# Ensure that PYTHON_PN is always set. (ROS_PYTHON_VERSION is set in generated-ros-distro.inc, ie, it will never be unset when
# we get here.)
inherit ${@'python3-dir' if d.getVar('ROS_PYTHON_VERSION', True) == '3' else 'python-dir'}