[yocto] How to extract an archive in a git repostry and copy it to a defined position in the rootfs?
Burton, Ross
ross.burton at intel.com
Tue Sep 13 02:58:48 PDT 2016
On 13 September 2016 at 08:08, <S.Jaritz at esa-grimma.de> wrote:
>
> ??? do_fetch_append () {
> ??? extract ${S}/example.tar.gz
> ??? }
> ??? do_install () {
> ??? 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_fetch() is a Python function so you can't just
append shell code. Simply move the extract into do_install().
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160913/a8685fcb/attachment.html>
More information about the yocto
mailing list