From: "Eswaran Vinothkumar (BEG/PJ-IOT-EL)" <Vinothkumar.Eswaran@de.bosch.com>
To: "Esponde, Joel" <Joel.Esponde@Honeywell.com>,
"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Sub-directories from Git in SRC-URI
Date: Tue, 11 Apr 2017 08:04:23 +0000 [thread overview]
Message-ID: <7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com> (raw)
In-Reply-To: <CY4PR07MB3429F7E461F3DA2C5DD111E696000@CY4PR07MB3429.namprd07.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]
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@Honeywell.com]
Gesendet: Dienstag, 11. April 2017 09:58
An: Eswaran Vinothkumar (BEG/PJ-IOT-EL) <Vinothkumar.Eswaran@de.bosch.com>; yocto@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@yoctoproject.org<mailto:yocto-bounces@yoctoproject.org> [mailto:yocto-bounces@yoctoproject.org] De la part de Eswaran Vinothkumar (BEG/PJ-IOT-EL)
Envoyé : mardi 11 avril 2017 08:25
À : yocto@yoctoproject.org<mailto:yocto@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
[-- Attachment #2: Type: text/html, Size: 8377 bytes --]
next prev parent reply other threads:[~2017-04-11 8:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 6:24 Sub-directories from Git in SRC-URI Eswaran Vinothkumar (BEG/PJ-IOT-EL)
2017-04-11 7:57 ` Esponde, Joel
2017-04-11 8:04 ` Eswaran Vinothkumar (BEG/PJ-IOT-EL) [this message]
2017-04-11 8:31 ` Miguel Aveiro
2017-04-11 13:51 ` Esponde, Joel
2017-04-11 16:37 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com \
--to=vinothkumar.eswaran@de.bosch.com \
--cc=Joel.Esponde@Honeywell.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.