From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EF6DCE00D3D; Tue, 13 Sep 2016 07:29:45 -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.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from gse01.esa-grimma.de (gse01.esa-grimma.de [185.141.66.29]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3B6A6E00D34 for ; Tue, 13 Sep 2016 07:29:40 -0700 (PDT) In-Reply-To: References: To: "Burton, Ross" MIME-Version: 1.0 X-KeepSent: 163FE52B:2E663506-C125802D:004F0852; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0 March 08, 2013 Message-ID: From: S.Jaritz@esa-grimma.de Date: Tue, 13 Sep 2016 16:29:36 +0200 X-MIMETrack: Serialize by Router on GSE01/Server/ESA-Grimma/DE(Release 9.0.1FP3 HF42|February 03, 2015) at 13.09.2016 16:29:42, Serialize complete at 13.09.2016 16:29:42 Cc: Yocto Project Subject: Antwort: Re: How to extract an archive in a git repostry and copy it to a defined position in the rootfs? (Solved) 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, 13 Sep 2016 14:29:46 -0000 Content-Type: multipart/alternative; boundary="=_alternative 004F9CFFC125802D_=" --=_alternative 004F9CFFC125802D_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the help! The solution is simple. As mentioned by Ross No=20 do=5Ffetch extension is needed. The extract + copy goes into do=5Finstall. #### part of the recipe #### do=5Finstall () { install -d ${D}/opt tar -xzf example.tar.gz -C ${D}/opt/ } FILES=5F${PN} +=3D "/opt/*" ######## Regards Stefan Jaritz ------------------------------------------------------------ ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30 04668 Grimma Telefon: +49 3437 9211 176 Telefax: +49 3437 9211 26 E-Mail: s.jaritz@esa-grimma.de Internet: www.esa-grimma.de Gesch=E4ftsf=FChrer: Dipl.-Ing. J=F6rg Gaitzsch J=F6rg Reinker Sitz der Gesellschaft: Grimma Ust.-ID: DE 141784437 Amtsgericht: Leipzig, HRB 5159 Steuernummer: 238/108/00755 Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte=20 Informationen.=20 Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich=20 erhalten=20 haben, informieren Sie bitte sofort den Absender und l=F6schen Sie diese=20 Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser=20 Mail=20 ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you = are=20 not the intended recipient (or have received this e-mail in error) please=20 notify the sender immediately and destroy this e-mail. Any unauthorized=20 copying, disclosure or distribution of the material in this e-mail is=20 strictly=20 forbidden. Von: "Burton, Ross" An: S.Jaritz@esa-grimma.de Kopie: Yocto Project Datum: 13.09.2016 11:59 Betreff: Re: [yocto] How to extract an archive in a git repostry=20 and copy it to a defined position in the rootfs? On 13 September 2016 at 08:08, wrote: ??? do=5Ffetch=5Fappend () {=20 ??? extract ${S}/example.tar.gz=20 ??? } =20 ??? do=5Finstall () {=20 ??? copy ${S}/ ${D}/opt/=20 ??? }=20 It's a tarball so use "tar" to extract, and you'll need to mkdir ${D}/opt=20 before copying. but that's barely just pseudocode. The only gotcha is that do=5Ffetch() is a Python function so you can't just= =20 append shell code. Simply move the extract into do=5Finstall(). Ross --=_alternative 004F9CFFC125802D_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the help! The solution is sim= ple. As mentioned by Ross No do=5Ffetch extension is needed. The extract + copy goes into do=5Finstall.

#### part of the recipe ####
do=5Finstall () {
        install -d ${D}/opt
        tar -xzf example.tar.gz -C ${D}/opt/
}

FILES=5F${PN} +=3D "/opt/*"= ;
########

Regards

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet:
www.esa-grimma.de


Gesch=E4ftsf=FChrer:
Dipl.-Ing. J=F6rg Gaitzsch
J=F6rg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte Informa= tionen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich erhalten
haben, informieren Sie bitte sofort den Absender und l=F6schen Sie diese
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is stric= tly
forbidden.




Von:     &= nbsp;  "Burton, Ross" <ross.burton@intel.com>
An:     &n= bsp;  S.Jaritz@esa-grimma.de
Kopie:    =    Yocto Project <yocto@yoc= toproject.org>
Datum:    =    13.09.2016 11:59
Betreff:   &nbs= p;    Re: [yocto] How to extract an archive in a git repostry and copy it to a defined positi= on in the rootfs?





On 13 September 2016 at 08:08, <<= u>S.Jaritz@esa-grimma.de> wrote:
??? do=5Ffetch=5Fappend () {<= font size=3D3>

???        extract ${S}/example.tar.gz

??? }
  

??? do=5Finstall () {

???        copy ${S}/ ${D}/opt/

??? }


It's a tarball so use "tar" to extract, and you'll need to mkdir ${D}/opt before copying. but that's barely just pseudocode.


The only gotcha is that do=5Ffetch() is a Python function so you can't just append shell code.  Simply move the extract into do=5Finstall().

Ross
--=_alternative 004F9CFFC125802D_=--