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 <stefan@herbrechtsmeier.net>
This commit is contained in:
Stefan Herbrechtsmeier 2013-04-04 10:45:46 +02:00
parent 26571f80f2
commit 9606c20935
1 changed files with 6 additions and 0 deletions

View File

@ -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"