[yocto] recipe with prefix to sourcecode path

Baumann, Michael Michael.Baumann at vector.com
Wed May 11 02:17:53 PDT 2016


I found the solution. I added this to my recipe:

S = "${WORKDIR}/git/ProjectA"

Regards,
Michael

>-----Original Message-----
>From: yocto-bounces at yoctoproject.org [mailto:yocto-
>bounces at yoctoproject.org] On Behalf Of Baumann, Michael
>Sent: Wednesday, May 11, 2016 10:58 AM
>To: yocto at yoctoproject.org
>Subject: [yocto] recipe with prefix to sourcecode path
>
>Hi,
>
>I am using CMAKE and wonder how to add a prefix to my recipe so that
>bitbake searches in the right directory for CMakeLists.txt.
>I use the SRC_URI variable to pull from my repository.
>I think the problem is that in the top level directory no CMakeLists.txt file
>exists and I don't want to add one.
>
>Is there a way to define the search path for the CMakeLists.txt?
>
>I am unfortunately bound to this repository structure:
>
>GitRepo
>├── ProjectA
>│   ├── CMakeLists.txt
>│   ├── source
>│   │   ├── CMakeLists.txt
>│   │   ├── CodeA
>│   │   │   ├── A.cc
>│   │   │   └── A.h
>│   │   ├── CodeB
>│   │   │   ├── B.cc
>│   │   │   ├── B.h
>│   │   └── main.cc
>├── ProjectB
>└── X
>└── Y
>└── Z
>
>Regards,
>Michael
>--
>_______________________________________________
>yocto mailing list
>yocto at yoctoproject.org
>https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list