diff --git a/includes-ros2/ros-workspace/ros-workspace-0.7.1-1.inc b/includes-ros2/ros-workspace/ros-workspace-0.7.1-1.inc new file mode 100644 index 0000000..804da0d --- /dev/null +++ b/includes-ros2/ros-workspace/ros-workspace-0.7.1-1.inc @@ -0,0 +1,16 @@ +# Copyright (c) 2019 LG Electronics, Inc. + +# ros-workspace is a ament dependent package but they use 'cmake' as build_type. +ROS_BUILD_TYPE = "ament_cmake" +ROS_BUILD_DEPENDS_remove = "ament-cmake-core" +ROS_BUILD_DEPENDS_remove = "ament-package" +ROS_BUILDTOOL_DEPENDS += " \ + ament-cmake-core-native \ + ament-package-native \ +" + +# The package find files from CMAKE_INSTALL_PREFIX that is just absolute "/usr". +# Need to pass the native sysroot folder path. +export STAGING_DIR_NATIVE +FILESEXTRAPATHS_prepend := "${THISDIR}/ros-workspace:" +SRC_URI_append = " file://0001-Don-t-use-CMAKE_INSTALL_PREFIX-as-sysroot-for-cross-.patch"