DRAFT ros_component.bbclass: Move ROS_BPN, ROS_SPN, ROS_SP into here from other bbclass-s
This commit is contained in:
parent
35fe716976
commit
f9097a0119
|
@ -1,6 +1,4 @@
|
||||||
# Copyright (c) 2018 LG Electronics, Inc.
|
# Copyright (c) 2018-2019 LG Electronics, Inc.
|
||||||
|
|
||||||
ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git/${ROS_BPN}"
|
S = "${WORKDIR}/git/${ROS_BPN}"
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ DEPENDS_append = " \
|
||||||
ament-cmake-test-native \
|
ament-cmake-test-native \
|
||||||
"
|
"
|
||||||
|
|
||||||
ROS_BPN ?= "${@d.getVar('BPN', True).replace('-', '_')}"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git/${ROS_BPN}"
|
S = "${WORKDIR}/git/${ROS_BPN}"
|
||||||
|
|
||||||
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"
|
EXTRA_OECMAKE_append = " -DBUILD_TESTING=OFF -DPYTHON_SOABI=cpython-35m-${TUNE_ARCH}-${TARGET_OS}${ARMPKGSFX_EABI}"
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
# Copyright (c) 2019 LG Electronics, Inc.
|
# 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_prefix = "${base_prefix}/opt/ros/${ROS_DISTRO}"
|
||||||
|
|
||||||
export ros_bindir = "${ros_prefix}/bin"
|
export ros_bindir = "${ros_prefix}/bin"
|
||||||
|
|
|
@ -6,6 +6,10 @@ export ROS_DISTRO
|
||||||
export ROS_VERSION
|
export ROS_VERSION
|
||||||
export ROS_PYTHON_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
|
# 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.)
|
# we get here.)
|
||||||
inherit ${@'python3-dir' if d.getVar('ROS_PYTHON_VERSION', True) == '3' else 'python-dir'}
|
inherit ${@'python3-dir' if d.getVar('ROS_PYTHON_VERSION', True) == '3' else 'python-dir'}
|
||||||
|
|
Loading…
Reference in New Issue