ajout telecommande dans recipe

This commit is contained in:
Nicolas 2021-01-27 00:41:25 +01:00
parent b5d6b4985a
commit 772fbf263f
2 changed files with 9 additions and 10 deletions

17
README
View File

@ -12,27 +12,27 @@ Dependencies
Patches
=======
Please submit any patches against the meta-opendds layer via the pull-request
Please submit any patches against the meta-robot layer via the pull-request
mechanism on github.
Maintainer: Keith Derrick <keith.derrick@lge.com>
Maintainer: Nicolas DAOUT <nicolas2020@nicda.fr>
Table of Contents
=================
I. Adding the meta-opendds layer to your build
I. Adding the meta-robot layer to your build
II. Misc
I. Adding the meta-opendds layer to your build
I. Adding the meta-robot layer to your build
=================================================
Run 'bitbake-layers add-layer meta-opendds'
Run 'bitbake-layers add-layer meta-robot'
II. Misc
========
The layer contains two recipes for OpenDDS: one versioned, one not.
The layer contains two recipes for robot: one versioned, one not.
The unversioned recipe is provided to allow clients, via a bbappend, to
build - for example - the HEAD of the master branch or some other version.
@ -40,10 +40,7 @@ build - for example - the HEAD of the master branch or some other version.
To use this unversioned recipe, add the following to your local.conf or
distro configuration file.
PREFERRED_VERSION_opendds="1.0+git%"
PREFERRED_VERSION_opendds-native="1.0+git%"
PREFERRED_VERSION_nativesdk-opendds="1.0+git%"
IMAGE_INSTALL_append = " robot"
Note that simply providing a different branch and SRCREV may be insufficient.
If your desired commit is significantly newer than that used for the versioned

View File

@ -11,11 +11,13 @@ S = "${WORKDIR}/git"
do_compile () {
${CXX} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/git/projRb/sources/*.cpp -Llibs -lpthread -lrt -o ${WORKDIR}/robot
${CXX} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/git/projRb/telecomande/*.cpp -Llibs -lpthread -lrt -o ${WORKDIR}/telecommande
}
do_install () {
mkdir -p ${D}${bindir}/robot/bin
cp ${WORKDIR}/robot ${D}${bindir}/robot/bin #on copie les fichiers issus de la compilation dans /usr/bin/robot/bin/
cp ${WORKDIR}/telecommande ${D}${bindir}/robot/bin #on copie les fichiers issus de la compilation dans /usr/bin/robot/bin/
}