From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 43EE7E00AF0; Tue, 11 Apr 2017 01:31:59 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.192.172 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.192.172 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A408DE00AD5 for ; Tue, 11 Apr 2017 01:31:57 -0700 (PDT) Received: by mail-pf0-f172.google.com with SMTP id s16so45589252pfs.0 for ; Tue, 11 Apr 2017 01:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telensa-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4yk6CPNnA3Dp3QEBgm1LZj5GpcIYsX9PRyFjvLI7UOg=; b=f79x6iXl2B/ZOOADUQCD/STP55D5pdtm8cEMTDIm7mZp5aPvZ3piZCndwGM5jDl7dy PtkkGXyktDqPMQoB5JArWMJQFpxcMIJrBOVFT85htDWT3toL21JXGlECVFEZ0iidS5tZ SXF2izF3qlmxb0YdiBlHXD1gyp/30gZH3WLch9M/YN5KaUfDSWRMlO/4sWIV0lNL/xG5 ROLl+nJh3oJd3uGKCIkeTPRo3MTMrn5gNBy/sMSJOxXLVHhmePK+FN+UA+wDkFHD+TZE p3Y3jjgr4d4wXXXJTgq2XkgDUXrJziy7GPLEOA+xC7fdTfkpvpWBwyWTjXAjWRMaT14c 5ZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4yk6CPNnA3Dp3QEBgm1LZj5GpcIYsX9PRyFjvLI7UOg=; b=Ip1onFH2s3nYfE3Hw4WGQ1y8N+yKEYg0shrci8HUo1NY/6/AATK2BuiuzF/lvnfZ5G St1SjBe0RVlqtheaRW7QBH9kK/wkgjwNpUmc+lh6LgTrwaheLvE3jik90X69DKpvy085 j1e/M7G1dvPGy4s5Sqgmyz48msz21/UE3Vk8VPnHbZfqSWoCrZLlJiUOPbnm0cV+7Onp RiDrvFpJ7KLZJG5w7fIkm+kJWfqfwQHJ2XQzuWNl+JBEIGtGMW5K0+6BcRtYQK/9wogu P+dGE3IMdDwaxhdpJLSxWaQLM+oxjONHWlViPXBOdmVTKuqKh/OaW5BrfIPFtoFeVw2u xlDw== X-Gm-Message-State: AFeK/H1HWeTvavSgZuP+zUS7f6cAPbQNQkhpItPMM2WDA4IOx3Cw6CE3WUf4wd5lh8izRKnUNkEwUwHw3HXdRwEy X-Received: by 10.84.218.68 with SMTP id f4mr73646424plm.146.1491899516799; Tue, 11 Apr 2017 01:31:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.181.229 with HTTP; Tue, 11 Apr 2017 01:31:56 -0700 (PDT) In-Reply-To: <7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com> References: <83bd670ecdbc4d1885b66d8ba8ed8b0c@FE-MBX1014.de.bosch.com> <7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com> From: Miguel Aveiro Date: Tue, 11 Apr 2017 09:31:56 +0100 Message-ID: To: "Eswaran Vinothkumar (BEG/PJ-IOT-EL)" Cc: "yocto@yoctoproject.org" Subject: Re: Sub-directories from Git in SRC-URI X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 08:31:59 -0000 Content-Type: multipart/alternative; boundary=94eb2c1a4460bd646e054cdfecb6 --94eb2c1a4460bd646e054cdfecb6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, You might want to take a look at bitbake's documentation: https://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manu= al.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@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 an= d > 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=E2= =80=99t > want to have. > > > > Mit freundlichen Gr=C3=BC=C3=9Fen / 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) 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=E2=80=99s say that your sub-directory relative path is =E2=80=9Cs= rc/myapp=E2=80=9D. > > Son now you just have to add to your recipe this line: > > > > S =3D "${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=C3=ABl Esponde* > > *Honeywell* | Safety and Productivity Solutions > > > > *De :* yocto-bounces@yoctoproject.org [mailto:yocto-bounces@ > yoctoproject.org ] *De la part de* > Eswaran Vinothkumar (BEG/PJ-IOT-EL) > *Envoy=C3=A9 :* mardi 11 avril 2017 08:25 > *=C3=80 :* 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=C3=BC=C3=9Fen / Best regards > > > *Vinothkumar Eswaran BEG-PT/PJ-IOT1* > > > > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > > --94eb2c1a4460bd646e054cdfecb6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

You might want to take a look at bi= tbake's=C2=A0documentation:


It a= ctually has a git=C2=A0submodules fetcher (gitsm://). I haven't used it= , but it should be straightforward.

Regards,
=
Miguel Aveiro=C2=A0

On 11 April 2017 at 09:04, Eswaran Vinothkumar (BEG/PJ-I= OT-EL) <Vinothkumar.Eswaran@de.bosch.com> wro= te:

Hi,

=C2=A0

Thanks for your answer. I had thought about using thi= s solution initially. In my case I have a common git repo for some 20 diffe= rent applications and planning to write an individual recipe for each application.

=C2=A0

If I plan to use in this way, I have 20 copies in my = disk which I don=E2=80=99t want to have.

=C2=A0

Mit freundlichen Gr=C3=BC=C3= =9Fen / 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

=C2=A0

Hi,

=C2=A0

Here is one way to man= age this use case.

In the SRC_URI variabl= e, you set the git repo access.

Now let=E2=80=99s say = that your sub-directory relative path is =E2=80=9Csrc/myapp=E2=80=9D.

Son now you just have = to add to your recipe this line:

=C2=A0

S =3D "${WORKDIR}/git/src/myapp"

=C2=A0

It is not optimized fr= om a disk usage point of view (a full copy of the repo files is in ${WORKDIR}/git= ) but it works.

=C2=A0

Regards,=

=C2=A0

Jo=C3=ABl Esponde<= u>

Honeywell | Sa= fety and Productivity Solutions

=C2=A0

De=C2=A0: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org= ] De la part de Eswaran Vinothkumar (BEG/PJ-IOT-EL)
Envoy=C3=A9=C2=A0: mardi 11 avril 2017 08:25
=C3=80=C2=A0: yocto@yoctoproject.org
Objet=C2=A0: [yocto] Sub-directories from Git in SRC-URI

=C2=A0

Hallo,

=C2=A0

May I now is it possible to include a sub-directory f= rom git repo in the SRC_URI of bitbake recipe.

=C2=A0

Also in SRC_URI is it possible to include a directory= instead of a single file?

=C2=A0

I know I could create a tar file of a directory and i= nclude it , but I would like to know is it possible to include directory as= a SRC_URI.

=C2=A0

=C2=A0

Mit freundlichen Gr=C3=BC=C3=9Fen / Best regards

Vinothkumar Eswaran
BEG-PT/PJ-IOT1




--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto<= br>

--94eb2c1a4460bd646e054cdfecb6--