From 772fbf263fa54e78bad822aafe396770278ea1e8 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 27 Jan 2021 00:41:25 +0100 Subject: [PATCH] ajout telecommande dans recipe --- README | 17 +++++++---------- recipes-connectivity/robot/robot.bb | 2 ++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README b/README index 5856536..2f72bb1 100644 --- a/README +++ b/README @@ -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 +Maintainer: Nicolas DAOUT 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 diff --git a/recipes-connectivity/robot/robot.bb b/recipes-connectivity/robot/robot.bb index b642737..0c73481 100644 --- a/recipes-connectivity/robot/robot.bb +++ b/recipes-connectivity/robot/robot.bb @@ -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/ }