2019-03-15 10:09:03 +08:00
|
|
|
# Copyright (c) 2019 LG Electronics, Inc.
|
|
|
|
|
|
|
|
inherit ros_distro
|
|
|
|
|
|
|
|
# Place metadata unique to ROS 2 distros here.
|
|
|
|
|
|
|
|
# ROS1_COMPONENTS is set in conf/ros-distro/ros-distro.conf .
|
|
|
|
def ros_distro__get_component_type(component, d):
|
|
|
|
return bb.utils.contains('ROS1_COMPONENTS', component, 'ros1', 'ros2', d)
|
2019-04-05 14:09:09 +08:00
|
|
|
|
|
|
|
# *.cmake files has hardcoded sysroot-s in them. We assume this is only an issue with ROS 2.
|
|
|
|
SSTATE_SCAN_FILES_append = " *.cmake"
|
2019-05-30 07:27:43 +08:00
|
|
|
|
|
|
|
# The parent_prefix_path files are used on the target => remove the build tree from the paths. We assume this is only an issue
|
|
|
|
# with ROS 2.
|
|
|
|
do_install_append_class-target() {
|
|
|
|
if [ -d ${D}${datadir}/ament_index/resource_index/parent_prefix_path ]; then
|
|
|
|
find ${D}${datadir}/ament_index/resource_index/parent_prefix_path -type f \
|
|
|
|
| xargs --no-run-if-empty sed -i -e 's@${STAGING_DIR_HOST}/@/@g' -e 's@${STAGING_DIR_NATIVE}/@/@g'
|
|
|
|
else
|
|
|
|
true
|
|
|
|
fi
|
|
|
|
}
|