Skip to content

Commit

Permalink
ros_component.bbclass: Move ROS_BPN, ROS_SPN, ROS_SP into here from o…
Browse files Browse the repository at this point in the history
…ther bbclass-s
  • Loading branch information
herb-kuta-lge committed Jul 1, 2020
1 parent 0c6541c commit 2c3773d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions classes/ament-python.bbclass
@@ -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}"

Expand Down
2 changes: 0 additions & 2 deletions classes/ament.bbclass
Expand Up @@ -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}"
Expand Down
4 changes: 4 additions & 0 deletions classes/ros_component.bbclass
Expand Up @@ -10,6 +10,10 @@ export ROS_PYTHON_VERSION
# in generated-ros-distro.inc, ie, it will never be unset when we get here.
PYTHON_PN ??= "${@'python3' if d.getVar('ROS_PYTHON_VERSION', True) == '3' else 'python'}"

ROS_BPN = "${@d.getVar('BPN', True).replace('-', '_')}"
ROS_SPN ?= "${ROS_BPN}"
ROS_SP = "${ROS_SPN}-${PV}"

inherit faulty-solibs
FILES_${PN}_prepend = " \
${datadir}/${ROS_BPN} \
Expand Down
5 changes: 0 additions & 5 deletions classes/ros_opt_prefix.bbclass
Expand Up @@ -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}"

ros_prefix = "${base_prefix}/opt/ros/${ROS_DISTRO}"

ros_bindir = "${ros_prefix}/bin"
Expand Down

0 comments on commit 2c3773d

Please sign in to comment.