From 97b9cbf43a927a20800ad3bacbabc263ae7a59f8 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Thu, 14 Mar 2019 19:09:03 -0700 Subject: [PATCH] DRAFT Add ros2_distro.bbclass --- classes/ros2_distro.bbclass | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 classes/ros2_distro.bbclass diff --git a/classes/ros2_distro.bbclass b/classes/ros2_distro.bbclass new file mode 100644 index 0000000..425622a --- /dev/null +++ b/classes/ros2_distro.bbclass @@ -0,0 +1,9 @@ +# 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)