From 4803ca0e4211388f79a78b57dd9b28dbe4e21331 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Wed, 27 Mar 2019 18:08:48 -0700 Subject: [PATCH] DRAFT Add ros_superflore_generated.bbclass --- classes/ros_superflore_generated.bbclass | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 classes/ros_superflore_generated.bbclass diff --git a/classes/ros_superflore_generated.bbclass b/classes/ros_superflore_generated.bbclass new file mode 100644 index 0000000..519babb --- /dev/null +++ b/classes/ros_superflore_generated.bbclass @@ -0,0 +1,13 @@ +# Inherited by every recipe that superflore generates. +# +# Copyright (c) 2019 LG Electronics, Inc. + +ROS_SUPERFLORE_GENERATED = "1" + +# If superflore found this BPN listed as a build tool, extend the recipe to build BPN-native. +BBCLASSEXTEND_append = "${@bb.utils.contains('ROS_SUPERFLORE_GENERATED_BUILDTOOLS', '${BPN}-native', ' native', '', d)}" + +# Returns under which of the includes-{ros1,ros2} trees the .inc files for packages of should be placed. +# ROS1_COMPONENTS is set in conf/ros-distro/ros-distro.conf . +def ros_superflore_generated__get_includes_tree(component, d): + return bb.utils.contains('ROS1_COMPONENTS', component, 'includes-ros1', 'includes-ros2', d)