From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1D011E0094C; Tue, 11 Apr 2017 06:51:55 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.36.125 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -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_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 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 X-Greylist: delayed 21233 seconds by postgrey-1.32 at yocto-www; Tue, 11 Apr 2017 06:51:51 PDT Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0125.outbound.protection.outlook.com [104.47.36.125]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C62F8E006CD for ; Tue, 11 Apr 2017 06:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Honeywell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WwlPEi6XsSm8d7ZOurdsk+KneBJaqNMw5VV3gjR4z0o=; b=bKRtUEXWAnNK9T6EB6wW2LFIZa5ti/cajeUV5g/GpuzBcB4ysr3PDX9neB/oFQoKFa6TKfD8tlbdZ3OEf0n8oupPqrUlTfOWyIkYKfRDsOAFg4F3NveQA6kf7NTaQP3vaKxnc5qgud7OS3vIBXPhJlr/g1mzHRiVL6Ruj0zfQt8= Received: from MWHPR07MB3440.namprd07.prod.outlook.com (10.164.192.15) by MWHPR07MB3440.namprd07.prod.outlook.com (10.164.192.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Tue, 11 Apr 2017 13:51:49 +0000 Received: from MWHPR07MB3440.namprd07.prod.outlook.com ([10.164.192.15]) by MWHPR07MB3440.namprd07.prod.outlook.com ([10.164.192.15]) with mapi id 15.01.1034.011; Tue, 11 Apr 2017 13:51:49 +0000 From: "Esponde, Joel" To: "Eswaran Vinothkumar (BEG/PJ-IOT-EL)" , "yocto@yoctoproject.org" Thread-Topic: Sub-directories from Git in SRC-URI Thread-Index: AdKyi+6CZGeMF7dnRvSNMfKHmDj6BgADEHXAAABdAOAADBiOUA== Date: Tue, 11 Apr 2017 13:51:49 +0000 Message-ID: References: <83bd670ecdbc4d1885b66d8ba8ed8b0c@FE-MBX1014.de.bosch.com> <7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com> In-Reply-To: <7efedc166d4c4ebdbf2a1938d1ff4f7d@FE-MBX1014.de.bosch.com> Accept-Language: fr-FR, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: de.bosch.com; dkim=none (message not signed) header.d=none; de.bosch.com; dmarc=none action=none header.from=Honeywell.com; x-originating-ip: [199.64.75.71] x-microsoft-exchange-diagnostics: 1; MWHPR07MB3440; 7:6/i+nAA+7ctm4atnBhqe+Q3P3yyg5HvYq90MelixXOkgvXVZKi8eBY6I1TPpcG9z8WeBqQ0mYfjCfWWXhCJW4B7FpCNzJRcAiuDtpf/07iSjqGa1L2zU1Zggt9ea9Xwi0/p3fQnqg6/rgCDSShwwbzWe9lV8CurdOWlMoEYT5wvQVWbLoS7+o+7Q5+GtvDub+BKURcXYs9bqiiV7fj+RzU2NPN4p8SK13JzF3zoCKSqVtTOp9leqaEdP+f4UkocKEH45wVBu98596Mu6k0+feVvj7mnF6RTW0QbXgKbjgz5GQe1MYfs5jQWMsmLxcTFrZj+Ya+hwZmOp2XJwIHqdHA==; 20:t7ps4bpdcrkUeV/7UTFyxJAnKhSk3ny6c/C2wIOvxuSXjOP81l8mkpkkX3K+cibFbykuQjbRZ93S5r2JNHL46xcR/Uy0a6wySk4HN+/JPcW80T+wdMdfzLlRCcAg4wapr/2oiuPSClk4PzneBtCbQpOZgMm1cAgLw/C5SXMtrcuPjDf/ZyfSSnA2FWN2yKd7KCLWvLKUTLyAzejF9bzkF7Trl8ybjBu8+0XAm8cGTnSIyk8o8aB/fbv0KbkQtHch x-ms-office365-filtering-correlation-id: 110cf413-39a4-43f4-9eba-08d480e1e719 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR07MB3440; x-recptdomain: NotTLSDomain x-atp-bypass: TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(278428928389397)(93747276172241)(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:MWHPR07MB3440; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3440; x-forefront-prvs: 0274272F87 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39400400002)(39850400002)(39860400002)(39410400002)(39450400003)(7696004)(38730400002)(236005)(122556002)(55016002)(99286003)(2950100002)(54896002)(9686003)(5660300001)(6306002)(25786009)(229853002)(53936002)(76176999)(54356999)(50986999)(6246003)(7906003)(7736002)(8936002)(2501003)(66066001)(74316002)(33656002)(3660700001)(2900100001)(2906002)(606005)(8676002)(6436002)(3846002)(189998001)(86362001)(3280700002)(77096006)(790700001)(6116002)(102836003)(81166006)(6506006); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR07MB3440; H:MWHPR07MB3440.namprd07.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: Honeywell.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2017 13:51:49.6326 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 96ece526-9c7d-48b0-8daf-8b93c90a5d18 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3440 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 13:51:55 -0000 Content-Language: fr-FR Content-Type: multipart/alternative; boundary="_000_MWHPR07MB3440011C3E862FBFE1CDA66696000MWHPR07MB3440namp_" --_000_MWHPR07MB3440011C3E862FBFE1CDA66696000MWHPR07MB3440namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Following Miguel Aveiro's link, I noticed a parameter called subpath that I= had never see: https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-m= anual.html#git-fetcher This parameter may provide you the feature you are looking for. Jo=EBl Esponde Honeywell | Safety and Productivity Solutions De : Eswaran Vinothkumar (BEG/PJ-IOT-EL) [mailto:Vinothkumar.Eswaran@de.bos= ch.com] Envoy=E9 : mardi 11 avril 2017 10:04 =C0 : Esponde, Joel ; yocto@yoctoproject.org Objet : AW: Sub-directories from Git in SRC-URI 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 wan= t to have. Mit freundlichen Gr=FC=DFen / 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) >; 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 =3D "${WORKDIR}/git/src/myapp" It is not optimized from a disk usage point of view (a full copy of the rep= o files is in ${WORKDIR}/git) but it works. Regards, Jo=EBl 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=E9 : mardi 11 avril 2017 08:25 =C0 : 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 SR= C_URI of bitbake recipe. Also in SRC_URI is it possible to include a directory instead of a single f= ile? I know I could create a tar file of a directory and include it , but I woul= d like to know is it possible to include directory as a SRC_URI. Mit freundlichen Gr=FC=DFen / Best regards Vinothkumar Eswaran BEG-PT/PJ-IOT1 --_000_MWHPR07MB3440011C3E862FBFE1CDA66696000MWHPR07MB3440namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Following Miguel Aveir= o’s link, I noticed a parameter called subpath that I had never see:

https://www.yoctoproject.org/docs/latest/bitbake-user-manual/b= itbake-user-manual.html#git-fetcher

This parameter may pro= vide you the feature you are looking for.

 

Jo=EBl Esponde=

Honeywell | Sa= fety and Productivity Solutions

 

De : Eswaran Vinothkumar (BEG/PJ-IOT-EL) [mailto:Vinothkumar.Eswaran@de= .bosch.com]
Envoy=E9 : mardi 11 avril 2017 10:04
=C0 : Esponde, Joel <Joel.Esponde@Honeywell.com>; yocto@y= octoproject.org
Objet : AW: Sub-directories from Git in SRC-URI

 

Hi,

 

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.

 

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=FC=DFen / 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,<= /p>

 

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

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

Now let’s say th= at your sub-directory relative path is “src/myapp”.=

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

 

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

 

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.

 

Regards,

 

Jo=EBl Esponde=

Honeywell | Sa= fety and Productivity Solutions

 

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

 

Hallo,

 

May I now is it possible to include a sub-directory f= rom 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 i= nclude it , but I would like to know is it possible to include directory as= a SRC_URI.

 

 

Mit freundlichen Gr=FC=DFen / Best regards

Vinothkumar Eswaran
BEG-PT/PJ-IOT1


--_000_MWHPR07MB3440011C3E862FBFE1CDA66696000MWHPR07MB3440namp_--