[yocto] Sub-directories from Git in SRC-URI

Miguel Aveiro ma at telensa.com
Tue Apr 11 01:31:56 PDT 2017


Hi,

You might want to take a look at bitbake's documentation:

https://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#gitsm-fetcher

It actually has a git submodules fetcher (gitsm://). I haven't used it, but
it should be straightforward.

Regards,
Miguel Aveiro

On 11 April 2017 at 09:04, Eswaran Vinothkumar (BEG/PJ-IOT-EL) <
Vinothkumar.Eswaran at de.bosch.com> wrote:

> Hi,
>
>
>
> Thanks for your answer. I had thought about using this solution initially.
> In my case I have a common git repo for some 20 different applications and
> planning to write an individual recipe for each application.
>
>
>
> If I plan to use in this way, I have 20 copies in my disk which I don’t
> want to have.
>
>
>
> Mit freundlichen Grüßen / Best regards
>
>
>
>
> *Vinothkumar Eswaran BEG-PT/PJ-IOT1 *
>
> *Von:* Esponde, Joel [mailto:Joel.Esponde at Honeywell.com]
> *Gesendet:* Dienstag, 11. April 2017 09:58
> *An:* Eswaran Vinothkumar (BEG/PJ-IOT-EL) <Vinothkumar.Eswaran at de.bosch.
> com>; yocto at yoctoproject.org
> *Betreff:* RE: Sub-directories from Git in SRC-URI
>
>
>
> Hi,
>
>
>
> Here is one way to manage this use case.
>
> In the SRC_URI variable, you set the git repo access.
>
> Now let’s say that your sub-directory relative path is “src/myapp”.
>
> Son now you just have to add to your recipe this line:
>
>
>
> S = "${WORKDIR}/git/src/myapp"
>
>
>
> It is not optimized from a disk usage point of view (a full copy of the
> repo files is in ${WORKDIR}/git) but it works.
>
>
>
> Regards,
>
>
>
> *Joël Esponde*
>
> *Honeywell* | Safety and Productivity Solutions
>
>
>
> *De :* yocto-bounces at yoctoproject.org [mailto:yocto-bounces@
> yoctoproject.org <yocto-bounces at yoctoproject.org>] *De la part de*
> Eswaran Vinothkumar (BEG/PJ-IOT-EL)
> *Envoyé :* mardi 11 avril 2017 08:25
> *À :* yocto at yoctoproject.org
> *Objet :* [yocto] Sub-directories from Git in SRC-URI
>
>
>
> Hallo,
>
>
>
> May I now is it possible to include a sub-directory from git repo in the
> SRC_URI of bitbake recipe.
>
>
>
> Also in SRC_URI is it possible to include a directory instead of a single
> file?
>
>
>
> I know I could create a tar file of a directory and include it , but I
> would like to know is it possible to include directory as a SRC_URI.
>
>
>
>
>
> Mit freundlichen Grüßen / Best regards
>
>
> *Vinothkumar Eswaran BEG-PT/PJ-IOT1*
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170411/646ce5e8/attachment.html>


More information about the yocto mailing list