From 9606c20935683b465f124b037a8cfba453696b45 Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Thu, 4 Apr 2013 10:45:46 +0200 Subject: [PATCH] catkin.bbclass: Stage /usr/etc sysroot direcotry The CMake generate_messages function from the genmsg package detects the installed message generators via files in the /usr/etc/ros/genmsg directory. Stage the /usr/etc directory manually as it is not a common path. Fixed #50 Signed-off-by: Stefan Herbrechtsmeier --- classes/catkin.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/catkin.bbclass b/classes/catkin.bbclass index e34178f..8d487e3 100644 --- a/classes/catkin.bbclass +++ b/classes/catkin.bbclass @@ -45,4 +45,10 @@ FILES_${PN}-dev += "\ ${datadir}/${ROS_BPN}/*.template \ " +SYSROOT_PREPROCESS_FUNCS += "catkin_sysroot_preprocess" + +catkin_sysroot_preprocess () { + sysroot_stage_dir ${D}${prefix}/etc ${SYSROOT_DESTDIR}${prefix}/etc +} + BBCLASSEXTEND += "native"