From 64236bb734233255f0942f1b352ca69b61b4198e 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)